Skip to content
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

Merged
merged 5 commits into from
Jan 6, 2025

Conversation

cansuaa
Copy link
Contributor

@cansuaa cansuaa commented Dec 30, 2024

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

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@cansuaa cansuaa requested a review from a team as a code owner December 30, 2024 14:07
@cansuaa cansuaa requested review from pan-kot and removed request for a team December 30, 2024 14:07
Copy link

codecov bot commented Dec 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.40%. Comparing base (1e11f46) to head (d66b0b2).
Report is 7 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

pan-kot
pan-kot previously approved these changes Jan 2, 2025
);
};

const ExampleTable = ({ variant }: { variant: 'container' | 'embedded' | 'borderless' | 'stacked' | 'full-page' }) => {
Copy link
Member

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={[
Copy link
Member

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?

@cansuaa cansuaa added this pull request to the merge queue Jan 6, 2025
Merged via the queue into main with commit f7988a7 Jan 6, 2025
38 checks passed
@cansuaa cansuaa deleted the cansua/stacked-table-bottom-padding branch January 6, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants