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

feat: add auto-expand properties instead of allChipsVisible #6775

Merged
merged 3 commits into from
Nov 13, 2023

Conversation

web-padawan
Copy link
Member

Description

Fixes #6722

Removed allChipsVisible property in favor of two new properties as described in #6722 (comment):

  • autoExpandHorizontally sets width on the container to auto (could be also fit-content),
  • autoExpandVertically makes chips wrap and sets display: contents on the chips part.

With autoExpandHorizontally: true we still have an overflow chip shown when reaching max width.
There is a new logic added to detect if the component has enough space to increase its width.

Type of change

  • Feature / refactor

@web-padawan web-padawan marked this pull request as draft November 10, 2023 12:06
@web-padawan web-padawan marked this pull request as ready for review November 10, 2023 12:58
@web-padawan web-padawan force-pushed the refactor/mscb-auto-expand branch 4 times, most recently from cb41677 to 0971a8d Compare November 10, 2023 13:24
@web-padawan web-padawan force-pushed the refactor/mscb-auto-expand branch from 0971a8d to 863b97c Compare November 10, 2023 13:32
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.3.0.

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 23.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSCB takes more space than needed with all-chips-visible
3 participants