Clarify that role="button" does not inherit button functionality#43186
Merged
hamishwillee merged 3 commits intomdn:mainfrom Feb 23, 2026
Merged
Conversation
abelmark
commented
Feb 22, 2026
Contributor
Author
abelmark
left a comment
There was a problem hiding this comment.
Key motivation here was a teammate was interpreting this as a role you add to an item you want tab focusable that does not have any mouse/keyboard interaction from a user.
Contributor
|
Preview URLs (1 page) (comment last updated: 2026-02-23 06:49:38) |
files/en-us/web/accessibility/aria/reference/roles/button_role/index.md
Outdated
Show resolved
Hide resolved
hamishwillee
approved these changes
Feb 23, 2026
Collaborator
hamishwillee
left a comment
There was a problem hiding this comment.
Thanks very much @abelmark , and welcome to MDN.
wbamberg
added a commit
to wbamberg/content
that referenced
this pull request
Feb 26, 2026
* upstream/main: (619 commits) Fix usage of numbers iterator in zip example (mdn#43236) Synchronize with BCD v7.3.3 (mdn#43178) Add Firefox 148 sanitizer release note (mdn#43234) WebDriver conformance changes for Firefox 148 (mdn#43228) ci(auto-merge): fix target-repo (mdn#43139) Add session mgt guide (mdn#42908) docs(firefox-release): Finalize release notes for Fx148 release (mdn#43225) [Technical Review] Add folder for WebDriver BiDi and create initial landing pages (mdn#43153) fix: correct 'after' to 'before' in break-before always/all descriptions (mdn#43185) added the release note for position-try-order (mdn#43223) Clarify that role="button" does not inherit button functionality (mdn#43186) Fix wording mistake in Temporal.ZonedDateTime (mdn#43188) Fix description for break-before: always (mdn#43190) improve confusing sentance (mdn#43172) Document scoped customElementRegistry and related properties (mdn#43149) fix: correct terminology for object initializer property names (mdn#43182) Fix typo about arrow function expression body (mdn#43175) Update InterfaceData based on WebRef (mdn#43179) Fix clarify visibilitychange event intro to mention all triggers (mdn#43177) [WebExtensions] Document runtime.getVersion() method (mdn#42971) ...
jdatapple
pushed a commit
to jdatapple/content
that referenced
this pull request
Mar 6, 2026
…#43186) * Clarify that role="button" does not inherit button functionality * Replace the term "inherit" as it added semanatics that were not needed --------- Co-authored-by: Mark Abel <markabel@MacBook-Pro.local>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Clarifies the summary and description paragraphs of the
buttonrole page to make explicit thatrole="button"does not inherit any native button functionality — event listeners and keyboard handling must be added manually.Motivation
The original wording ("provides no button functionality") was ambiguous. It could be read as saying a button with this role has no useful functionality at all, rather than conveying that the role only affects how assistive technology announces the element. The updated wording makes clear that the semantic role is communicated to screen readers, but the interactive behavior (event listeners, keyboard handling) is not inherited and must be implemented by the developer.
Additional details
The change is applied to both the opening summary sentence and the equivalent sentence in the Description section.
Related issues and pull requests
N/A