-
Notifications
You must be signed in to change notification settings - Fork 321
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 selector for table-layout rule #1761
Conversation
gotta love those one-character PRs! |
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.
Could/should we have a scss autoformatter to make those issues more visible ? I doubt a linter can detect that though.
We are using prettier as a pre-commit hook. Though reading through https://prettier.io/docs/en/comparison we might need a combination of prettier + a linter to catch these type of bugs |
a quick search turned up |
b8ad975
to
dadc35f
Compare
I added a linter in another PR (#1764) but as @Carreau guessed, it does not pick up the error fixed in this PR. I wish I knew a good way to add a regression test. But I don't even know how to recreate the original issue with a data table on which I vary table-layout from "auto" to "fixed". It seems like something else was going on #1063 and #1017. I actually don't think the root issue originally was just the table-layout property, though. As far as I can tell, the So I think that issues #1063 and #1017 were actually fixed in #1482 by a change in _tables.scss. In fact I wonder if the right thing to do would be to remove the table-layout rule. Unless an explicit width is set, The reason why we're even dealing with |
Thinking about this some more, I think we can apply |
I marked this ready for review |
thanks for the detective work @gabalafou |
Fixes #1063 (again, issue reopened).
I noticed a CSS selector that looks like it's missing a comma.
This CSS rule has some history: