Skip to content

Support 'zebra stripes' for rows or columns #499

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

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

tfmark
Copy link
Contributor

@tfmark tfmark commented Apr 8, 2024

Issue number of the reported bug or feature request: #379

Describe your changes
I've tried to tackle the issue by leveraging the DataGrid rowBackgroundColor/columnBackgroundColor functionality.

Testing performed
I've tested locally spinning up a Jupyter lab per the instructions in the README.

Additional context
rows:
image
columns:
image
dark mode:
image

Note: The "zebra striping" terminology comes from the underlying DataGrid, I don't know if there is a better name for it, but I couldn't think of one :)

@tfmark tfmark force-pushed the zebra-rows-and-cols branch from 1c5ab2d to 8a0722b Compare April 8, 2024 15:42
@martinRenou
Copy link
Member

Great! Thanks for looking into implementing this!

Changes look great to me, just a suggestion, would horizontal_stripes and vertical_stripes be a better name?

@tfmark tfmark force-pushed the zebra-rows-and-cols branch from 5e0bdc7 to 4ba0b14 Compare April 9, 2024 15:11
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks!

@martinRenou martinRenou merged commit 612e4a3 into jupyter-widgets:main Apr 9, 2024
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.

2 participants