From 90a870dbcf9c25210d516265c9ebcf64f8bc24e9 Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Fri, 30 Aug 2024 10:18:26 -0500 Subject: [PATCH 1/5] Move social icons blockProps from li to button By moving the blockProps for the social icon from the
  • to the + { /* eslint-enable jsx-a11y/no-redundant-roles */ } { isSelected && showURLPopover && ( Date: Mon, 18 Nov 2024 11:24:17 -0600 Subject: [PATCH 5/5] Add role=presentation to li elements in editor --- packages/block-library/src/social-link/edit.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/block-library/src/social-link/edit.js b/packages/block-library/src/social-link/edit.js index 42a39a23ada3b..14b0f11334a09 100644 --- a/packages/block-library/src/social-link/edit.js +++ b/packages/block-library/src/social-link/edit.js @@ -182,7 +182,13 @@ const SocialLinkEdit = ( { onChange={ ( value ) => setAttributes( { rel: value } ) } /> + { /* + * Because the `
      ` element has a role=document, the `
    • ` is + * not semantically correct, so adding role=presentation is cleaner. + * https://github.com/WordPress/gutenberg/pull/64883#issuecomment-2472874551 + */ }