Skip to content

Commit

Permalink
fix required content color; closes #1882
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Feb 23, 2024
1 parent 12ce021 commit 7ff0907
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/pages/resources/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/components/checkbox/checkbox.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
`;
1 change: 1 addition & 0 deletions src/components/switch/switch.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7ff0907

Please sign in to comment.