Skip to content

feat(icon-button): also render label as hidden text inside the button#1674

Draft
gcornut wants to merge 1 commit into
masterfrom
feat/icon_button_render_label_as_hidden_text_instead_of_aria_label
Draft

feat(icon-button): also render label as hidden text inside the button#1674
gcornut wants to merge 1 commit into
masterfrom
feat/icon_button_render_label_as_hidden_text_instead_of_aria_label

Conversation

@gcornut

@gcornut gcornut commented May 27, 2026

Copy link
Copy Markdown
Member

General summary

Render the IconButton's label as a visually-hidden text node inside the button (in addition to keeping the existing aria-label for backward compatibility).

This will be useful when we want the button to also label another element. For example, we could have a dropdown menu attached to a button which is labeled by the button with aria-labelledby={buttonId}.

StoryBook lumx-react: https://922ba94f0--5fbfb1d508c0520021560f10.chromatic.com/
StoryBook lumx-vue: https://922ba94f0--697a023f84e832e23544fb3c.chromatic.com/

@gcornut gcornut marked this pull request as ready for review May 27, 2026 10:08
@gcornut gcornut requested review from a team and lumautomation as code owners May 27, 2026 10:08
@gcornut gcornut force-pushed the feat/icon_button_render_label_as_hidden_text_instead_of_aria_label branch from fa5c669 to 6e0d10f Compare May 27, 2026 10:43
@gcornut gcornut force-pushed the feat/icon_button_render_label_as_hidden_text_instead_of_aria_label branch 2 times, most recently from 84b9030 to 633193e Compare May 27, 2026 14:55
@gcornut gcornut changed the title feat(icon-button): render label as hidden text instead of aria-label feat(icon-button): also render label as hidden text inside the button May 27, 2026
@gcornut gcornut force-pushed the feat/icon_button_render_label_as_hidden_text_instead_of_aria_label branch 2 times, most recently from 68a7c9d to 4f74930 Compare June 2, 2026 08:04
@gcornut gcornut marked this pull request as draft June 2, 2026 08:04
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

Visual Regression Report

@lumx/react — 1 difference(s)

@lumx/vue — No changes

@lumx/react vs @lumx/vue — 1 difference(s), 462 matched, 123 React-only, 3 Vue-only


View full report · Download artifacts

@gcornut gcornut force-pushed the feat/icon_button_render_label_as_hidden_text_instead_of_aria_label branch from 4f74930 to bd6d90b Compare June 4, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant