Skip to content

Commit

Permalink
Fix table overflow styling (#4934)
Browse files Browse the repository at this point in the history
* Add overflow scroll to table container

* revise to overflow to auto

* add overlay

* Remove snapshots

* Update screenshots
  • Loading branch information
mayagbarnes committed Jul 7, 2022
1 parent 26de600 commit 4c39606
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -23,6 +23,7 @@ export const StyledTableContainer = styled.div(({ theme }) => ({
fontFamily: theme.fonts.sansSerif,
padding: `${theme.spacing.twoXS} ${theme.spacing.xs}`,
lineHeight: theme.lineHeights.table,
overflow: ["auto", "overlay"],
}))

export const StyledTable = styled.table(({ theme }) => ({
Expand Down
Expand Up @@ -23,6 +23,7 @@ export const StyledTableContainer = styled.div(({ theme }) => ({
fontFamily: theme.fonts.sansSerif,
padding: `${theme.spacing.twoXS} ${theme.spacing.md}`,
lineHeight: theme.lineHeights.table,
overflow: ["auto", "overlay"],
}))

export const StyledTable = styled.table(({ theme }) => ({
Expand Down

0 comments on commit 4c39606

Please sign in to comment.