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: text wraps overflowing container #2045

Open
rafarubim opened this issue Dec 6, 2024 · 0 comments
Open

Button: text wraps overflowing container #2045

rafarubim opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rafarubim
Copy link

Problem

When there is no space for the button to grow, a moderately long text will wrap and overflow out of the button.

image

This can be fixed with custom styles, but it seems like the Button style should handle it by default. This scenario may be common in instances like the Alert component:

image

Credits to @georgebrindeiro for finding this bug

Expected behavior

No response

Reproducible Example

No response

Suggested solution

No response

Additional context

No response

Package

@vtex/shoreline

Packages version

No response

Browser

No response

Package Manager

pnpm

@rafarubim rafarubim added the bug Something isn't working label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant