Skip to content

fix: don't count hidden rows in table stripes#585

Merged
lucaslarroche merged 1 commit intopicocss:devfrom
feored:fix-striped-table
Mar 9, 2025
Merged

fix: don't count hidden rows in table stripes#585
lucaslarroche merged 1 commit intopicocss:devfrom
feored:fix-striped-table

Conversation

@feored
Copy link
Contributor

@feored feored commented Aug 3, 2024

Hiding rows of a table using the hidden global attribute can screw up the striping because they are still counted in the odd/even rows.

This fix is straight from the MDN.

@lucaslarroche
Copy link
Member

Thanks @feored for this great addition, and sorry for the delay!
I’ll merge this into dev, recompile the CSS files, and it will be shipped in the next release.

@lucaslarroche lucaslarroche changed the base branch from main to dev March 9, 2025 07:36
@lucaslarroche lucaslarroche merged commit 4b57da2 into picocss:dev Mar 9, 2025
This was referenced Mar 9, 2025
@lucaslarroche
Copy link
Member

Hey @feored, I initially tested this and it seemed to work fine, but after releasing and testing again, it’s not behaving as expected. For peace of mind, I’m reverting it for now.

Appreciate your contribution, and I’ll revisit this later if we can find a way to make it work reliably across all cases!

#662

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.

3 participants