Conversation
1fc2b62 to
cdf0dbc
Compare
jdamner
left a comment
There was a problem hiding this comment.
Is this is likely to create the warning for block recovery for existing icons? Can we test to see if that warning appears? This block is on use in many sites so it would be better if we can avoid if so. Looking at the code you might be ok if you change the aria-hidden attribute to have a true or undefined value instead of true/false. If it's undefined I think React will omit it from the HTML generated. To avoid the warning we need to be sure the HTML from the save function is unchanged for existing icons.
Also, have we considered the default values here, not sure what the "correct" value is from an accessibility standpoint but we should probably set the default value to be the correct value. We could also default the label to being the text value of the icon, perhaps sentence casing it with icon suffix?
|
Also, forgot to say though, great addition!! Glad we're looking at things like this. |
|
I've added this for our project so thought it would be a good candidate to push back upstream. I think the default is for screen readers to read out any text which would equate to |
c1658ec to
1a085e7
Compare
Add the ability to set ARIA controls in the icon block sidebar: