shoelace-style/shoelace

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

Open

#2,414 创建于 2025年3月30日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)TypeScript (922 fork)github user discovery
bugfixed-in-wagood first issuehelp wanted

仓库指标

Star
 (13,867 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南