fix required content color; closes #1882

pull/1889/head
Cory LaViska 2024-02-23 11:47:04 -05:00
rodzic 12ce0217e5
commit 7ff09070ad
3 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -21,6 +21,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
- Fixed a bug in `<sl-tab-group>` that caused the scroll controls to toggle indefinitely when zoomed in Safari [#1839]
- Fixed a bug in the submenu controller that allowed two submenus to be open at the same time [#1880]
- Fixed a bug in `<sl-select>` where the tag size wouldn't update with the control's size [#1886]
- Fixed a bug in `<sl-checkbox>` and `<sl-switch>` where the color of the required content wasn't applying correctly
## 2.14.0

Wyświetl plik

@ -115,6 +115,7 @@ export default css`
:host([required]) .checkbox__label::after {
content: var(--sl-input-required-content);
color: var(--sl-input-required-content-color);
margin-inline-start: var(--sl-input-required-content-offset);
}
`;

Wyświetl plik

@ -155,6 +155,7 @@ export default css`
:host([required]) .switch__label::after {
content: var(--sl-input-required-content);
color: var(--sl-input-required-content-color);
margin-inline-start: var(--sl-input-required-content-offset);
}