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

feat: Dialog and Dialog-fullscreen: Make title-text required [GAUD-7002] #4999

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

margaree
Copy link
Contributor

@margaree margaree commented Sep 23, 2024

Jira ticket

This overrides the DialogMixin title-text property in dialog and dialog-fullscreen to make it required.

Reasoning: it is an accessibility violation to not have some sort of label on a dialog. dialog-confirm falls back to text in the case where there is not title-text so it's fine, but these two cases are not.

Notes:

  • I did a search for where dialog and dialog-fullscreen we NOT currently using title-text and only found one case here (though the GitHub search sometimes misses things so it's possible this will cause an uptick in js errors, in which case we can find these cases and fix them). Let me know if there's any you know of as well.
  • We don't want this required for all usages of DialogMixin to allow for flexibility (e.g., if they are more like dialog-confirm)

Copy link
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-4999/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

Copy link
Member

@dlockhart dlockhart left a comment

Choose a reason for hiding this comment

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

Nice!

@margaree margaree marked this pull request as ready for review September 23, 2024 13:36
@margaree margaree requested a review from a team as a code owner September 23, 2024 13:36
@margaree margaree merged commit b5adc2b into main Sep 23, 2024
6 checks passed
@margaree margaree deleted the dialog-title-text branch September 23, 2024 13:36
Copy link

🎉 This PR is included in version 3.41.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants