-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
Frontend: Allows PanelChrome to be collapsed #71991
Frontend: Allows PanelChrome to be collapsed #71991
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.
Hey @harisrozajac 👋🏾,
Good job on this PR! I like the implementation 🙌🏾 . I see Gio's point on having a mode
, but you're right about keeping it simple because of backward compatibility and the issues that come with deprecating props in Grafana UI components.
Just one more thing - could you update the PanelChrome.mdx
documentation? It would be good to have an example and a note about hoverHeader
and collapsible
not working together.
Apart from that, everything is working great 🥳 Well done!
@axelavargas Thank you so much for your feedback! I've updated the documentation, so we should be good to go. 🎆 |
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.
LGTM!
* Collapsible PanelChrome v1 * Enable either Collapsible or HoverHeader modes * Clean up * Update story * Add test * Revert to 'strict' * Use useToggle * Allow collapsibility when title is not passed * Fix semantics and ellipsis wrapping * Improve accessibility * Add documentation
* Collapsible PanelChrome v1 * Enable either Collapsible or HoverHeader modes * Clean up * Update story * Add test * Revert to 'strict' * Use useToggle * Allow collapsibility when title is not passed * Fix semantics and ellipsis wrapping * Improve accessibility * Add documentation
This feature allows PanelChrome to be collapsed.
With this feature, PanelChrome has three mutually exclusive modes:
The panel can be collapsed/expanded by clicking on the chevron or the title.
Fixes: #70145
Please check that: