* Fix for #2145

* Fixed misleading comment after css adjustments

* Use same spacing for all sizes

---------

Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
This commit is contained in:
Christian Schilling
2024-09-23 17:34:33 +02:00
committed by GitHub
parent 68641480cd
commit a6d4cea3b7
2 changed files with 10 additions and 8 deletions

View File

@@ -12,6 +12,11 @@ Components with the <sl-badge variant="warning" pill>Experimental</sl-badge> bad
New versions of Shoelace are released as-needed and generally occur when a critical mass of changes have accumulated. At any time, you can see what's coming in the next release by visiting [next.shoelace.style](https://next.shoelace.style).
## Next
- Fixed a bug in `<sl-select>` that made the suffix slot collide with the clear button [#2145]
## 2.17.0
- Added the `fixed-scroll-controls` attribute to `<sl-tab-group>` [#2128]

View File

@@ -260,20 +260,17 @@ export default css`
border-radius: var(--sl-input-height-large);
}
/* Prefix */
.select__prefix {
/* Prefix and Suffix */
.select__prefix,
.select__suffix {
flex: 0;
display: inline-flex;
align-items: center;
color: var(--sl-input-placeholder-color);
}
/* Suffix */
.select__suffix {
flex: 0;
display: inline-flex;
align-items: center;
color: var(--sl-input-placeholder-color);
.select__suffix::slotted(*) {
margin-inline-start: var(--sl-spacing-small);
}
/* Clear button */