-
Notifications
You must be signed in to change notification settings - Fork 270
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(ui5-panel): make the header clickable #204
Conversation
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 like the idea, not completely sure who must validate in the end though, maybe Stani?
|
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 proposal matches the behaviour of the details HTMLElement so we should strive for the same by default
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
packages/main/src/Panel.js
Outdated
|
||
_getHeader() { | ||
return this.shadowRoot.querySelector(".sapMPanelWrappingDiv"); | ||
debugger; |
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.
forgotten
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.
it is removed with the last commit
Make the entire header area clickable in order to toggle the panel, add keyboard handling (SPACE and ENTER) and focus outline. Note, that this would be the default behaviour. If custom header is set, only the icon will be clickable out of the box (as currently).
Fixes: #194