hi guys! does anyone know how to force a blank al...
# replo-help
n
hi guys! does anyone know how to force a blank alt attribute for a decorative image? when an image has no alt attribute, the alt is erroneously omitted, and screen readers instead read the filename of the image instead of ignoring the image
c
Not super familiar but could you use a blank space or blank space character? Or poss just “decoration only”
n
NVDA will announce “graphic” but give no dimensions or other information.
Not ideal
c
Then ¯\_(ツ)_/¯
😭 1
m
just put the cover name if there is no alt text given
n
We created a nolt request for this! https://replo.nolt.io/177
🙌 1
I can pretty easily see a checkbox like “this image is decorative” which just sets the alt to “”
n
what's a "cover name" @Manish kumar?
I don't think there's ever a scenario where the alt attribute should be omitted -- maybe just keeping it blank does the trick. When its omitted, screen readers read the file name
m
Hey ! @nick lundy We use alternative name for alt attributes when there is no alt given for images. For example: For profile photo we can give cover name for alt attribute like “profile-pic”.
And i could do it through custom code more effectively. Let me know if you need help with that?
n
ah, okay! trying to keep within the Replo toolset so that content admins don't have to learn HTML and won't break things :D
but yes, HMTL component is a good fix for now, thank you
👍 1
m
Your welcome @nick lundy let me know if there us anything i can assist you with
🙌 1