Skip to content

Commit

Permalink
Buttons: Add support for tablist buttons using toggle button
Browse files Browse the repository at this point in the history
See WordPress/wporg-developer#352

Extends styles for active toggle buttons to cover aria-selected state
  • Loading branch information
adamwoodnz committed Nov 22, 2023
1 parent aa715a7 commit 8765bf3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
}

input[type="checkbox"]:checked + .wp-block-button__link,
.wp-block-button__link[aria-pressed="true"] {
.wp-block-button__link[aria-pressed="true"],
.wp-block-button__link[aria-selected="true"] {

@include button-toggle-active-styles;

Expand Down

0 comments on commit 8765bf3

Please sign in to comment.