shoelace-style/shoelace

The clear button for input collapse when the input has a small width

Open

#2 414 ouverte le 30 mars 2025

Voir sur GitHub
 (0 commentaires) (1 réaction) (0 assignés)TypeScript (922 forks)github user discovery
bugfixed-in-wagood first issuehelp wanted

Métriques du dépôt

Stars
 (13 867 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Describe the bug

When a the sl-input has a small width, e.g. 8rem, the clear button of the input has a smaller width than usual.

To Reproduce

<sl-input clearable value="1234"></sl-input>
sl-input {
  max-width: 8rem
}

Demo

https://codepen.io/fsujvjic-the-reactor/pen/GgRYzXe

Browser / OS

  • OS: Windows
  • Browser: Firefox
  • Browser version: 136.0.4

Guide contributeur