-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
fix(/lib/components/table): prevent scrollbars around <Table>
s
#608
Conversation
I love this idea, but we don't want to ship custom CSS. Can you find a way to accomplish this in Tailwind CSS via the theme instead of creating a stylesheet file? |
<Table>
s
@tulup-conner What about like this? |
We will want a solution using Tailwind CSS purely, which has support for custom selectors like these. Inline CSS has other negative implications for users, e.g., it will break Content Security Policies. |
Edit: I think I might have found it. https://tailwindcss.com/docs/hover-focus-and-other-states#differentiating-nested-groups. Let me test it out first.
|
@rluders @tulup-conner Ok, I think that's it. No stylesheets. I didn't know about nested groups, so I didn't think it was possible without stylesheets. |
@multiwebinc could you sync your branch with the |
@rluders What do you think, would it make sense to move the |
I think that it makes sense. WDYT, @tulup-conner ? |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #608 +/- ##
=======================================
Coverage 99.42% 99.42%
=======================================
Files 130 130
Lines 6450 6476 +26
Branches 485 485
=======================================
+ Hits 6413 6439 +26
Misses 37 37
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Well, I can't see any reason to keep this one pending. I'm accepting it, @multiwebinc. Thank you! |
…mesberg#608) * Update default.ts * Update Table.tsx * Update TableBody.tsx * Update TableCell.tsx * Update TableRow.tsx * Update defaults.ts * Fix prettier errors
Description
This moves the background color and border radius to the cells and places a div under the table for the box shadow effect. That way if a table is modified (rows or columns added or removed) or if the screen resolution changes, it won't create scrollbars around the table.
Fixes #605
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Just tested by trying it out
Checklist: