Skip to content

Commit

Permalink
Reverting addition of aria-selected style hook in Button (#54931)
Browse files Browse the repository at this point in the history
Reverting addition of `aria-selected` style hook in `Button`
  • Loading branch information
Andrew Hayward committed Sep 29, 2023
1 parent 5dec32e commit e58fc36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- `DateTimePicker`: fix onChange callback check so that it also works inside iframes ([#54669](https://github.com/WordPress/gutenberg/pull/54669)).
- `FormTokenField`: Add `box-sizing` reset style and reset default padding ([#54734](https://github.com/WordPress/gutenberg/pull/54734)).
- `SlotFill`: Pass `Component` instance to unregisterSlot ([#54765](https://github.com/WordPress/gutenberg/pull/54765)).
- `Button`: Remove `aria-selected` CSS selector from styling 'active' buttons ([#54931](https://github.com/WordPress/gutenberg/pull/54931)).

### Internal

Expand Down
3 changes: 1 addition & 2 deletions packages/components/src/button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@

// Toggled style.
&[aria-pressed="true"],
&[aria-pressed="mixed"],
&[aria-selected="true"] {
&[aria-pressed="mixed"] {
color: $components-color-foreground-inverted;
background: $components-color-foreground;

Expand Down

0 comments on commit e58fc36

Please sign in to comment.