-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat(Dialog): a new optional prop for the close button #2916
Conversation
packages/gamut/src/Modals/Dialog.tsx
Outdated
@@ -69,12 +73,12 @@ export const Dialog: React.FC<DialogProps> = ({ | |||
</Text> | |||
<Box gridArea="close"> | |||
<IconButton | |||
aria-label="Close Dialog" | |||
aria-label={closeButtonLabel} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think you can delete this line, i don't think it needs an aria-label, the tip text should be enough (it auto-adds aria-label based on tip text)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in the latest commit. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks great! could you open a PR with the gamut-kit
alpha package? there are instructions here on how to do that. we just like to make sure nothing is breaking + all tests are passing.
will ✅ once that's done!
Hi @dreamwasp, here's a PR that uses this alpha version: https://github.com/codecademy-engineering/mono/pull/7110 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
📬Published Alpha Packages:@codecademy/[email protected] |
🚀 Styleguide deploy preview ready! |
Overview
Added a new optional prop for the close button related to its tip.
PR Checklist
Testing Instructions
yarn start
closeButtonTipText
should be visible in the Code Playground sectionPR Links and Envs