Skip to content

[9.2] [Search] Replace aria-selected with aria-expanded on Result toggle button (#260561)#260580

Merged
kibanamachine merged 1 commit into
elastic:9.2from
kibanamachine:backport/9.2/pr-260561
Mar 31, 2026
Merged

[9.2] [Search] Replace aria-selected with aria-expanded on Result toggle button (#260561)#260580
kibanamachine merged 1 commit into
elastic:9.2from
kibanamachine:backport/9.2/pr-260561

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

…tton (elastic#260561)

## Summary

## Summary

Fixes a critical `aria-allowed-attr` accessibility violation in the
`Result` component (`@kbn/search-index-documents`).

The "Show more fields" `EuiButtonIcon` was using `aria-selected` to
communicate its toggle state, but `aria-selected` is not a valid ARIA
attribute for the `button` role. This was replaced with `aria-expanded`,
which is the semantically correct attribute for a button that controls
the visibility of related content.

(cherry picked from commit 70d4f49)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Mar 31, 2026
@kibanamachine kibanamachine enabled auto-merge (squash) March 31, 2026 20:48
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Failed CI Steps

Metrics [docs]

‼️ ERROR: no builds found for mergeBase sha [29e4a8a]

cc @seialkali

@kibanamachine kibanamachine merged commit e88416e into elastic:9.2 Mar 31, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants