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

FullScreeenDrawer and SimpleDrawer: add props for drawer body #1185

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

ailhay
Copy link
Contributor

@ailhay ailhay commented Jun 11, 2024

Background

Chakra, for drawer, sets aria-describedby default value for chakra-modal to be the id of the drawer body. This creates some voiceover issues on iphone (in browser) as any child components in the drawer body that doesn't have aria-describedby set instead uses the aria-describedby default value set for the entire modal.

Solution

Add a prop to FullScreenDrawer and SimpleDrawer that contains props for drawer body. This will enable the user to set a specific id for drawer body that doesn't match the default aria-describedby.

@ailhay ailhay requested review from johnolos, ithen15 and a team as code owners June 11, 2024 07:27
@ailhay ailhay requested review from Cmoen11, leiferikbjorkli, cibietici, MikaelSvanasbakken, alicemacl, MTeresita and mcklien and removed request for a team June 11, 2024 07:27
Copy link

changeset-bot bot commented Jun 11, 2024

🦋 Changeset detected

Latest commit: 99a3d31

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@vygruppen/spor-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ailhay ailhay changed the title FullScreeenDrawer and SimpleDrawer: added props for drawer body FullScreeenDrawer and SimpleDrawer: add props for drawer body Jun 12, 2024
@ailhay ailhay merged commit c5f30bf into main Jun 12, 2024
2 checks passed
@ailhay ailhay deleted the change-default-aria-describedby-drawer branch June 12, 2024 08:16
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

2 participants