Skip to content

fix(combobox): Visually nest group items properly #6749

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 12, 2023

Conversation

driskull
Copy link
Member

@driskull driskull commented Apr 7, 2023

Related Issue: #6384

Summary

Fix css for nesting group combobox items.

@driskull driskull added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Apr 7, 2023
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Apr 7, 2023
@driskull driskull marked this pull request as ready for review April 7, 2023 15:54
@driskull driskull requested a review from a team as a code owner April 7, 2023 15:54
@driskull
Copy link
Member Author

I can haz review? :)

@driskull driskull added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Apr 10, 2023
Copy link
Member

@jcfranco jcfranco left a comment

Choose a reason for hiding this comment

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

Code changes LGTM!

@ashetland Can you review the visual diffs?

Good to merge once ☝️ approveth.

@ashetland
Copy link
Contributor

It looks like when items get slotted into an item-group, the var --calcite-combobox-item-spacing-indent-multiplier gets bumped by +1: what is 0, 1, 2... when not in a group becomes 1, 2, 3... when in a group. This bumping of the multiplier isn't ideal and complicates the hierarchical relationships when item-groups are used. Is it possible to change this behavior of item-group?

@driskull
Copy link
Member Author

@ashetland isn't that what the issue is asking for? item-groups should provide nesting indentation?

@driskull
Copy link
Member Author

This PR does make it look how it did previously.

@ashetland
Copy link
Contributor

ashetland commented Apr 12, 2023

Thanks @driskull, you're totally right. This PR fixes the behavior of nesting groups. Should the other behavior fix be logged as its own issue? Sometimes we've been making little fixes like this as we catch them, but maybe that's not the best practice. Happy to log a separate issue if that's the preferred approach.

@driskull
Copy link
Member Author

Should the other behavior fix be logged as its own issue

Yes, definitely. Otherwise we get scope creep

@ashetland
Copy link
Contributor

Awesome. Approving now. 🚀

@driskull driskull merged commit 8d0d0e5 into master Apr 12, 2023
@driskull driskull deleted the dris0000/combobox-group-nesting branch April 12, 2023 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants