-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Drawer: Make content scroll by default #75287
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.
Mr Harrison 🕶️ code looks good to me, good job 🙌🏾 .
However, I wonder, if we are deprecating the property scrollableContent
shouldn't we keep the old behavior to be backward compatible?
P.S. We could also update the Drawer.mdx
to include this default behavior :)
good shout on restoring the old behaviour. i've done that, just made re: updating the documentation; i'm not sure what i'd write. especially since we're deprecating the prop, we don't really want to encourage anyone to use it... "this component now scrolls exactly as you'd expect it to"? 😅 that's why i find this whole prop so weird. it's not something we should have ever exposed as a configuration option. this is just how the component should work. |
That's a good point! This component now scrolls exactly as you'd expect it to ---> 🤣 this made my day. |
Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
* deprecate scrollableContent prop and make it the default behaviour * restore prop behaviour, just make it default to true * Update packages/grafana-ui/src/components/Drawer/Drawer.tsx Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com> --------- Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
* deprecate scrollableContent prop and make it the default behaviour * restore prop behaviour, just make it default to true * Update packages/grafana-ui/src/components/Drawer/Drawer.tsx Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com> --------- Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
* deprecate scrollableContent prop and make it the default behaviour * restore prop behaviour, just make it default to true * Update packages/grafana-ui/src/components/Drawer/Drawer.tsx Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com> --------- Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
What is this feature?
scrollableContent
prop and marks it for removal in the next versionscrollableContent
in the core grafana codebaseWhy do we need this feature?
Drawer
componentWho is this feature for?
Which issue(s) does this PR fix?:
Fixes #
Special notes for your reviewer:
Please check that: