From 8765bf3f75c51fab736cfff50b871b19de51bc47 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:08:04 +1300 Subject: [PATCH] Buttons: Add support for tablist buttons using toggle button See https://github.com/WordPress/wporg-developer/issues/352 Extends styles for active toggle buttons to cover aria-selected state --- .../themes/wporg-parent-2021/sass/blocks/_button.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/wp-content/themes/wporg-parent-2021/sass/blocks/_button.scss b/source/wp-content/themes/wporg-parent-2021/sass/blocks/_button.scss index 6701bdd3..23fcf23d 100644 --- a/source/wp-content/themes/wporg-parent-2021/sass/blocks/_button.scss +++ b/source/wp-content/themes/wporg-parent-2021/sass/blocks/_button.scss @@ -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;