Skip to content

Radio group accessibility #543#568

Open
benjaminLeongSK wants to merge 11 commits intomainfrom
BL/543
Open

Radio group accessibility #543#568
benjaminLeongSK wants to merge 11 commits intomainfrom
BL/543

Conversation

@benjaminLeongSK
Copy link
Copy Markdown
Contributor

Changes
Description of changes...

  • Passing of id to subtitle for accessibility

Additional information

  • You may refer to this ticket

Comment thread package.json
Comment on lines +137 to +141
fireEvent.click(getRadioButtonA());
fireEvent.click(getRadioButtonB());

expect(getRadioButtonA()).not.toBeChecked();
expect(getRadioButtonB()).not.toBeChecked();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not required. assume DS covers this implementation detail

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update all the unit tests, thanks!

name={radioButtonId}
aria-disabled={disabled ?? option.disabled}
focusableWhenDisabled={disabled}
name={id}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why set name to the fixed id?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check through all other instances

Comment on lines +100 to +101
disabled={disabled ?? option.disabled}
name={radioButtonId}
aria-disabled={disabled ?? option.disabled}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to set aria-disabled again, isn't it handled by the component?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check through all other instances

@qroll

This comment was marked as resolved.

Comment thread src/components/fields/radio-button/radio-button.tsx Outdated
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.

2 participants