-
Notifications
You must be signed in to change notification settings - Fork 160
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: Bottom padding in stacked table #3161
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3161 +/- ##
========================================
Coverage 96.40% 96.40%
========================================
Files 784 784
Lines 22136 22138 +2
Branches 7602 7190 -412
========================================
+ Hits 21341 21343 +2
- Misses 743 788 +45
+ Partials 52 7 -45 ☔ View full report in Codecov by Sentry. |
); | ||
}; | ||
|
||
const ExampleTable = ({ variant }: { variant: 'container' | 'embedded' | 'borderless' | 'stacked' | 'full-page' }) => { |
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.
nit: I would either only use stacked or container or use TableProps.Variant here.
sortingField: 'value', | ||
}, | ||
]} | ||
items={[ |
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.
nit: Would it be enough to use items from pages/table/generate-data and columns from pages/table/shared-configs?
Description
Added bottom padding to stacked table. Previously when the last item was selected, there would be no space between the selected item and table border whereas container variant table had space.
Related links, issue #, if available: AWSUI-60100
How has this been tested?
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.