From eaee266c31c8e439a62e19525fe7fd39c2978db2 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 4 Jun 2024 14:53:27 +0200 Subject: [PATCH] Make edit site pagination buttons accessibly disabled. (#62267) Co-authored-by: afercia Co-authored-by: mirka <0mirka00@git.wordpress.org> --- .../global-styles/screen-revisions/style.scss | 3 ++- .../edit-site/src/components/pagination/index.js | 12 ++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/edit-site/src/components/global-styles/screen-revisions/style.scss b/packages/edit-site/src/components/global-styles/screen-revisions/style.scss index dfe30c9bee33d..e19876f98ee1f 100644 --- a/packages/edit-site/src/components/global-styles/screen-revisions/style.scss +++ b/packages/edit-site/src/components/global-styles/screen-revisions/style.scss @@ -180,7 +180,8 @@ margin-bottom: $grid-unit-05; line-height: 1.2; } - .components-button.is-tertiary:disabled { + .components-button.is-tertiary:disabled, + .components-button.is-tertiary[aria-disabled="true"] { color: $gray-600; } .components-button.is-tertiary:hover { diff --git a/packages/edit-site/src/components/pagination/index.js b/packages/edit-site/src/components/pagination/index.js index 2608621f39c84..450ff2a17d5b5 100644 --- a/packages/edit-site/src/components/pagination/index.js +++ b/packages/edit-site/src/components/pagination/index.js @@ -46,8 +46,7 @@ export default function Pagination( {