-
Notifications
You must be signed in to change notification settings - Fork 34
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
Remove ariaLabel prop and use same translation close for dialog #2097
Remove ariaLabel prop and use same translation close for dialog #2097
Conversation
60271d3
to
d050dfe
Compare
3c9faa6
to
b72dee5
Compare
@@ -111,7 +116,7 @@ const Dialog = ({ | |||
<DialogTitle translate={translate}> | |||
{title} | |||
<Button | |||
ariaLabel={ariaLabel} | |||
ariaLabel={t("close.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.
Do we need to fall back to the supplied one for now?
Also, if someone uses this prop, can we give them a warning / error at build time?
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 translation already exists for Toast
so, I just used the same one. Not sure about warning at build time. No strong feelings either way
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 just wonder if we should warn users about this, if we detect they set the prop. We're pretty much dropping the value on the floor now.
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.
@chrispulsinelli-okta I'm fine with warning users, if that is what we want to do. How do I best accomplish that?
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'm good with the changes and leave it up to you if you want to leave a warning for users if they set the prop we deprecated.
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.
Other than one comment removal, this is approved 👍
Co-authored-by: Kevin Ghadyani <[email protected]>
OKTA-683644
Summary
Testing & Screenshots