Skip to content
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

Use an indeterminate checkbox pattern for p-table select all. #1161

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

collincchoy
Copy link
Contributor

This PR changes the <p-table /> component to use an indeterminate checkbox for the multiselect permutation's (de)select-all box.

Of note, aside from just the visual change of utilizing the indeterminate state, this pattern slightly changes the behavior as well. The checkbox is now considered "checked" if any row is selected so that clicking the checkbox now deselects all selected rows when any is selected. Compare this to previous behavior where checking when not all rows are selected will select all.

This change was done to be more inline with the visual appearance of the indeterminate state (which has a minus sign so when some, but not all rows are selected, the behavior will remove selections)

@collincchoy collincchoy requested a review from a team as a code owner March 18, 2024 23:05
Copy link

netlify bot commented Mar 18, 2024

Deploy Preview for prefect-design ready!

Name Link
🔨 Latest commit 3731677
🔍 Latest deploy log https://app.netlify.com/sites/prefect-design/deploys/65f8c8c83f52c00008ac6f79
😎 Deploy Preview https://deploy-preview-1161--prefect-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@pleek91 pleek91 left a comment

Choose a reason for hiding this comment

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

Nice

@collincchoy collincchoy merged commit 202f8f4 into main Mar 19, 2024
6 checks passed
@collincchoy collincchoy deleted the p-table/indeterminate-select-all-checkbox branch March 19, 2024 16:52
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