Skip to content

Commit

Permalink
Add role=presentation to li elements in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Nov 18, 2024
1 parent 22d205e commit 64ca1c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/block-library/src/social-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,13 @@ const SocialLinkEdit = ( {
onChange={ ( value ) => setAttributes( { rel: value } ) }
/>
</InspectorControls>
{ /*
* Because the `<ul>` element has a role=document, the `<li>` is
* not semantically correct, so adding role=presentation is cleaner.
* https://github.com/WordPress/gutenberg/pull/64883#issuecomment-2472874551
*/ }
<li
role="presentation"
className={ wrapperClasses }
style={ {
color: iconColorValue,
Expand Down

0 comments on commit 64ca1c9

Please sign in to comment.