diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index f91b73a37..1aef0fceb 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -11,6 +11,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis ## Next - Improved `` so it renders relative to the current font size and improved padding +- Added `button--checked` to `` and `control--checked` to `` to style just the checked state [#933](https://github.com/shoelace-style/shoelace/pull/933) ## 2.0.0-beta.83 diff --git a/src/components/radio-button/radio-button.ts b/src/components/radio-button/radio-button.ts index 9ef6ecc27..c432a72f7 100644 --- a/src/components/radio-button/radio-button.ts +++ b/src/components/radio-button/radio-button.ts @@ -21,6 +21,7 @@ import type { CSSResultGroup } from 'lit'; * * @csspart base - The component's internal wrapper. * @csspart button - The internal button element. + * @csspart button--checked - The internal button element if checked * @csspart prefix - The prefix slot's container. * @csspart label - The button's label. * @csspart suffix - The suffix slot's container. @@ -83,7 +84,7 @@ export default class SlRadioButton extends ShoelaceElement { return html`