-
Notifications
You must be signed in to change notification settings - Fork 66
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: add method to customize Dialog overlay ARIA role #6473
Conversation
Quality Gate passedIssues Measures |
This ticket/PR has been released with Vaadin 24.5.0.alpha7 and is also targeting the upcoming stable 24.5.0 version. |
* @param role | ||
* the role to set | ||
*/ | ||
public void setOverlayRole(String role) { |
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 wondering if this should be an enum on the flow side with both possible values (dialog / alertdialog) to ensure the typical type safety on java side.. those values don't change often and people could theoretically always use the element API if a new value comes out of the blue and you could not update in 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.
Good point. Maybe we could add an override for this method to Dialog and also Popover.
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.
That you have to decide :) While in alpha.. I would just ditch the old methods completely before you have to maintain them for decades
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.
We are about to release beta so I'm afraid for now we'd have to leave these methods as they are.
Created #6645 so that we don't forget about this idea, and maybe consider it for the next minor.
Description
Part of vaadin/web-components#4977
Depends on vaadin/web-components#7582
Added
setOverlayRole()
andgetOverlayRole()
methods toDialog
(the logic is copied from thePopover
).Type of change