Skip to content

Conversation

@Ovgodd
Copy link
Collaborator

@Ovgodd Ovgodd commented Aug 1, 2025

Purpose

Enhance accessibility for screen reader users by:

  • ensuring decorative icons are not redundantly announced,
  • providing meaningful labels for icon-only buttons,
  • correcting the heading hierarchy for better semantic structure.

issue : 897

Proposal

  • Added aria-hidden="true" on decorative icons to prevent screen readers from announcing them unnecessarily
  • Added aria-label on icon-only buttons (e.g., Home, Search) to describe their purpose
  • Extended the Title component to accept a headingLevel prop for semantic flexibility
  • Updated the homepage title to use a <h1> instead of <h2>, as it represents the main heading of the application
  • Added new i18n keys for "Back to homepage" and "Search docs" in all supported locales

@Ovgodd Ovgodd requested a review from AntoLC August 1, 2025 08:40
@Ovgodd Ovgodd self-assigned this Aug 1, 2025
@Ovgodd Ovgodd force-pushed the fix/897-decorative-icons branch from a022a32 to bc4ecdb Compare August 1, 2025 08:41
@AntoLC AntoLC removed their request for review August 4, 2025 08:13
@Ovgodd Ovgodd force-pushed the fix/897-decorative-icons branch 6 times, most recently from 1b41461 to c3176d6 Compare August 4, 2025 11:31
Add aria-hidden and aria-label to improve screen reader accessibility

Signed-off-by: Cyril <[email protected]>
@Ovgodd Ovgodd force-pushed the fix/897-decorative-icons branch from c3176d6 to 99d674c Compare August 4, 2025 11:35
selectors were updated to stabilize and fix the failing e2e tests

Signed-off-by: Cyril <[email protected]>
@Ovgodd Ovgodd requested a review from AntoLC August 4, 2025 15:28
@AntoLC AntoLC linked an issue Aug 5, 2025 that may be closed by this pull request
@AntoLC
Copy link
Collaborator

AntoLC commented Aug 5, 2025

download

@Ovgodd Ovgodd merged commit 97ab13d into main Aug 5, 2025
25 of 27 checks passed
@Ovgodd Ovgodd deleted the fix/897-decorative-icons branch August 5, 2025 07:29
@Ovgodd
Copy link
Collaborator Author

Ovgodd commented Aug 5, 2025

download

I love that feeling ahah

@AntoLC AntoLC changed the title ⚡️(frontend) add correct attributes to decorative and interactive icons ♿(frontend) add correct attributes to decorative and interactive icons Sep 4, 2025
@AntoLC AntoLC mentioned this pull request Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Icons

3 participants