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

[Button] - Fix text wrapping #1499

Open
JoannaSikora opened this issue Jan 24, 2025 · 0 comments · May be fixed by #1506
Open

[Button] - Fix text wrapping #1499

JoannaSikora opened this issue Jan 24, 2025 · 0 comments · May be fixed by #1506
Assignees
Labels
bug Something isn't working medium
Milestone

Comments

@JoannaSikora
Copy link
Contributor

JoannaSikora commented Jan 24, 2025

The issue arises when a button's parent container has a smaller width than the button itself. In such cases, the button's text wraps, leading to an undesirable appearance and misaligned layout.

Current Behavior:
When the button's text wraps due to insufficient parent container width, the button's design becomes inconsistent and visually unappealing.

Image

Desired Behavior:
The button should maintain a minimum width to prevent text wrapping.
The button should not shrink below its minimum width even if the parent container has limited space.

Note:
This fix could potentially be a breaking change for the Button component, as it may impact existing layouts that rely on the current behavior.

@JoannaSikora JoannaSikora converted this from a draft issue Jan 24, 2025
@JoannaSikora JoannaSikora added bug Something isn't working medium labels Jan 24, 2025
@vladko-uxds vladko-uxds modified the milestones: Future plans, Cycle #11 Jan 24, 2025
@JoannaSikora JoannaSikora self-assigned this Jan 29, 2025
@JoannaSikora JoannaSikora moved this from Selected for Development to In Progress in LiveChat Design System Jan 29, 2025
@JoannaSikora JoannaSikora linked a pull request Jan 30, 2025 that will close this issue
3 tasks
@JoannaSikora JoannaSikora moved this from In Progress to In Review in LiveChat Design System Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working medium
Projects
Status: In Review
Development

Successfully merging a pull request may close this issue.

2 participants