-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[DataTable] Add prop to disable scroll indicator #2647
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
Conversation
💦 Potential splash zone of changes introduced to No significant changes to This comment automatically updates as changes are made to this pull request. |
@chloerice since you have TONES of context on the DataTable, do you see an issue with doing this? |
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.
Thanks for contributing @devonpmack, allowing the table navigation to be optional totally makes sense. Suggested a couple edits to more clearly indicate that the navigation isn't toggled on and off by the prop alone, since the navigation is only visible when the table collapses to fit its container. Naming is hard though 😅so pinging @sadiesaurus for extra input 🙏
Thanks for your insight @chloerice! |
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.
Code looks good to me. The prop name caught me off-guard at first though. I'm wondering if hideScrollIndicator
would be a better name and default to false
.
I'm not held to this opinion but I feel like showNavigationOnCollapse
sounds like it forces the navigation to show when the data table is collapsed which is the default behaviour anyway.
Hmm, yeah I think your right @kyledurand. |
I like the idea of |
5c70e67
to
f95d049
Compare
Changed to |
8ea2b61
to
00af471
Compare
00af471
to
f3fa88a
Compare
WHY are these changes introduced?
Needed in Web because we are using the DataTable in a modal and the scroll indicator doesn't look very good.
WHAT is this pull request doing?
Adding a prop
showNavigationOnCollapse
(default true), that when false, hides the scroll indicator.How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx
:🎩 checklist
README.md
with documentation changes