From c1a2b66aa1adbe25de4e877768e38466bfd387ed Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Wed, 24 Jul 2024 16:45:00 +0200 Subject: [PATCH 1/4] Use real labels instaed of headings or aria-labels. --- .../global-styles/shadows-edit-panel.js | 41 +++++++++++-------- .../src/components/global-styles/style.scss | 9 ++++ 2 files changed, 32 insertions(+), 18 deletions(-) diff --git a/packages/edit-site/src/components/global-styles/shadows-edit-panel.js b/packages/edit-site/src/components/global-styles/shadows-edit-panel.js index 77bbdb88221167..66fd9ad5cd251d 100644 --- a/packages/edit-site/src/components/global-styles/shadows-edit-panel.js +++ b/packages/edit-site/src/components/global-styles/shadows-edit-panel.js @@ -14,7 +14,6 @@ import { __experimentalInputControl as InputControl, __experimentalUnitControl as UnitControl, __experimentalParseQuantityAndUnitFromRawValue as parseQuantityAndUnitFromRawValue, - __experimentalGrid as Grid, __experimentalDropdownContentWrapper as DropdownContentWrapper, __experimentalUseNavigator as useNavigator, __experimentalToggleGroupControl as ToggleGroupControl, @@ -464,7 +463,8 @@ function ShadowPopover( { shadowObj, onChange } ) { label={ __( 'Inset' ) } /> - + + > onShadowChange( 'spread', value ) } /> - + ); } @@ -510,29 +510,18 @@ function ShadowInputControl( { label, value, onChange, hasNegativeRange } ) { }; return ( - - - { label } -