open-ui icon indicating copy to clipboard operation
open-ui copied to clipboard

Change `alt` attributes to be empty

Open YummyBacon5 opened this issue 1 year ago • 6 comments

For these images, the alt attribute should be empty because these images are decorational. Since all the info is already conveyed through the option's text.

Currently, a screen reader would announce "flag of USA USA" as the accessible name, which is verbose.

YummyBacon5 avatar Nov 10 '23 22:11 YummyBacon5

Agree with the complete redundancy here; but I'm curious if we should add an alt of "flag" to the image? This would result with an AT reading of "Image ... Flag ... USA, etc". I think I prefer your approach but would like @josepharhar to weigh in since he's primarily making the selectlist changes

gregwhitworth avatar Nov 11 '23 01:11 gregwhitworth

These shouldnt have alt values. Flag isn’t useful here unless the intent is to choose a flag

scottaohara avatar Nov 11 '23 15:11 scottaohara

Not a blocker here but we should add label elements to each of the selectlists

lukewarlow avatar Nov 18 '23 16:11 lukewarlow

Hey, please can this PR be merged now? Since it has been months

YummyBacon5 avatar Apr 24 '24 08:04 YummyBacon5

@mfreed7 or @gregwhitworth would be good if one of you could approve so we can merge :)

lukewarlow avatar Apr 24 '24 08:04 lukewarlow

These shouldnt have alt values. Flag isn’t useful here unless the intent is to choose a flag

Based on this reply, this LGTM.

mfreed7 avatar Apr 25 '24 00:04 mfreed7

It has been more months. This change does improve the accessible name. I guess I'm just not trusted enough to make these changes, lol.

Is there anything which I can change to get this merged? @gregwhitworth, @dbaron, @josepharhar

YummyBacon5 avatar Aug 07 '24 18:08 YummyBacon5

This branch has conflicts that must be resolved Use the web editor or the to resolve conflicts. Conflicting files site/src/pages/components/selectlist.mdx

Once you fix that, it already has the needed approvals to land.

mfreed7 avatar Aug 07 '24 21:08 mfreed7

Done

YummyBacon5 avatar Aug 07 '24 21:08 YummyBacon5