-
-
Notifications
You must be signed in to change notification settings - Fork 9
[BUG] Striped table does not work on minified pico css version #42
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
Comments
Yep, I just noticed that as well, I'll have a fix for it shortly. |
So what's happening is when cleancss cli minifies the CSS it change the css selector and removes an important space from PicoCSS/scss/content/_table.scss Lines 55 to 56 in 0875d75
Between the If anybody knows of a way around this, please let us know! Then after researching today, I've found a workaround I created a sass mixin that handles the levels of nested hidden rows, and will be pushing it to the repo here shortly. I will probably set the level to 2 hidden rows, and if more is needed I'll have a setting that'll allow the developer to change the number of potential hidden rows. I'll make a note of this in the docs as well. This fix is only a temporary fix u til we can find a way to minify the CSS and not remove the spaces around the |
So if it's an issue with the dependency that minify style should an issue be opened to their repo to notice them ? |
I think switching to another minifier would be useful because the one that is used currently in pico looks to be possibly abandoned. |
Gotta hate when you find a solution to the original issue after you made an alternative and released it. I thought I tried this solution but I guess not. I'll be publishing it here soon, version 2.2.6 |
Thanks for the quick release fix ;) |
Please search for duplicate or closed issues first. ✔️
Describe the issue
Current Behavior
When using minified version of pico (
pico.min.css
),.striped
class applied ontable
does not appears.When switching back to the non minified version (
pico.css
) it works as expected.Expected Behavior
Striped table should work for both minified and unminified version of pico
Reproduction URL
Environment
The text was updated successfully, but these errors were encountered: