For decorative icon fonts and other applicable components, is there a difference between using aria-hidden="true" and using role="img" alt=""
Decorative Icon Fonts Accessibility
62 Views Asked by Myreille Abaya At
1
There are 1 best solutions below
Related Questions in ACCESSIBILITY
- Why does getRootInActiveWindow() always returns null in Accessibility Event
- Accessibility : Full keyboard access with scroll view in swiftui
- How to create an overlay window over a certain element via AccessibilityService and scroll it too?
- Problem with Delphi android app and talkback
- How can I get the screen reader to read controls that are not tab stops (e.g. static labels)?
- NVDA is not announcing "dialog" when Modal opens
- Accessibility sequence not working with "HorizontalPager" in Android Jetpack Compose
- Android recyclerview - cant able to navigate items using accessibility focus
- Using aria-describedby to reference description that contains more than just text
- What is the correct usage of aria-describedby?
- How to make related checkboxes accessible using wai-aria tags?
- How to close compose dialog in accessibility mode?
- How do I make an "add to list" pattern accessible for assistive technology users?
- Autogenerate link title based on URL/target for accessibility
- typeViewClicked event is not detected when target window is developed by jetpack compose by my accessibilityservice
Related Questions in ICON-FONTS
- Flutter custom Icon Font not showing from package
- Convert Font Icons To SVG Icons With Vite
- npm bootstrap-icons Icon Font sass not compiling correctly
- css icon without image
- Is there a way to make all icons the same size?
- Changing an HTML Class with Hover Pseudo Class CSS
- Why does Opera display Google's Material Symbols Outlined (icon font) incorrectly, how to fix?
- Icon font with multi-color SVG icons
- Vuetify use 2 IconFonts
- Decorative Icon Fonts Accessibility
- Some Tabler font icons appearing filled
- IcoMoon Font Export Issue
- Is there a Font available for the new Bootstrap Icons?
- How to change color of Icon which make from createFromIconfontCN with Ant Design?
- Can't figure out how to get metro icon font or weather icon font working or how to save SVG
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes there is a difference, but not a massive one.
aria-hidden="true"will completely remove it from the accessibility tree.role="img" alt=""will still add it to the accessibility tree as a decorative image. (well an image with noaltdescription if we are being technical - it won't get read out and that is what we care about)Now this doesn't cause issues for majority of screen reader users. But some screen reader users may use a screen reader with very high verbosity settings (how much detail gets read out).
In this case it can actually be possible that with
role="img"that the image is read out as "image, no description".It is an edge case, but one to consider.
As an additional thought - support for
role="img"may not be so great (there isn't a lot of data on this)I would encourage the use of
aria-hidden="true"and perhaps addrole="presentation"as support is good for that as a nice fall-back.