Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSTEAM1-969: Add Checkbox #11610

Merged
merged 10 commits into from May 13, 2024
Merged

WSTEAM1-969: Add Checkbox #11610

merged 10 commits into from May 13, 2024

Conversation

shayneahchoon
Copy link
Contributor

Resolves JIRA WSTEAM1-969

Overall changes

Adds Checkbox styling:
Screenshot 2024-05-09 at 14 13 39

Code changes

  • Restructures field components to have labels, so that styling can be added for the checkbox.

checkboxLabel: ({ spacings }: Theme) =>
css({
flex: 'auto',
marginLeft: `${spacings.DOUBLE}rem`,
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll need marginInlineStart to allow for RTL languages to have the correct spacing

Copy link
Contributor

@Isabella-Mitchell Isabella-Mitchell left a comment

Choose a reason for hiding this comment

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

Looks good - I looked through the AACs and compared to the Storybook UGC page, and tested with VoiceOver on Safari on mac.

One thing I noticed in both the AAC's and the Screen reader UX we refer to the Checkbox as required. However, the checkbox we have on the example form the Storybook doesn't appear to be required.

Do we know how many of the default form structures have required checkboxes? If there are some maybe we should add one required and one non-required checkbox to storybook so we can test both in the swarm. If there are none, then perhaps we should update the AAC's and Screen reader UX?

@shayneahchoon
Copy link
Contributor Author

I think this may get resolved in the upcoming ARIA ticket WSTEAM1-998

@shayneahchoon shayneahchoon merged commit 39cd6dd into latest May 13, 2024
11 checks passed
@shayneahchoon shayneahchoon deleted the WSTEAM1-969-CHECKBOX branch May 13, 2024 09:42
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.

None yet

3 participants