Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
fix(Table): dyanmic styles in mq fix (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhq authored and robineng committed Oct 9, 2019
1 parent c9e83f7 commit 119ee08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/table/table-styles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export default theme => {
borderColor: palette.gray7,
minWidth: props => props.minWidth,
[mixins.maxMedia('md')]: {
minWidth: 'auto',
// ToDo: put dynamic style back inside mq when react-jss fixes bug with dynamic styles in media queries https://github.com/cssinjs/jss/issues/1188
// !important because dynamic style still takes precedence as it is below the static styles in the DOM
minWidth: 'auto !important',
},
},
tableLayoutFixed: {
Expand Down

1 comment on commit 119ee08

@vercel
Copy link

@vercel vercel bot commented on 119ee08 Oct 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.