Skip to content

[8.x] fix: [Stateful: Home page] Not checked radio button receive focus a first element in radio group. (#195745)#196273

Merged
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-195745
Oct 15, 2024
Merged

[8.x] fix: [Stateful: Home page] Not checked radio button receive focus a first element in radio group. (#195745)#196273
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-195745

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…irst element in radio group. (elastic#195745)

Closes: elastic#195190

## Description

According to ARIA Authoring Practices Guide, focus should be on the
checked radio button when the user reaches radio group while navigating
using only keyboard. As of now, because all the time first radio button
in the group receives focus, even if it is not checked, it may cause
confusion and could potentially lead users to unintentionally change
their selection without checking all checkboxes which exist in the
group.

## What was changed:
1. Added name attribute for `EuiRadioGroup`.

## Screen:

https://github.com/user-attachments/assets/20db2394-b9db-4c40-9e72-53ee860cd066
(cherry picked from commit 2c1d5ce)
@kibanamachine kibanamachine merged commit 68ca739 into elastic:8.x Oct 15, 2024
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.

2 participants