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 Label Text Overflow Issue with maxWidth #7276

Open
ddoemonn opened this issue Sep 30, 2024 · 0 comments · May be fixed by #7277
Open

Button Label Text Overflow Issue with maxWidth #7276

ddoemonn opened this issue Sep 30, 2024 · 0 comments · May be fixed by #7277
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@ddoemonn
Copy link

Describe the bug

When trying to set maxWidth to button and creating text overflow there is no ellipsis it's kinda edge case but I think Button should offer a nice UI even if user wants that (ex: maybe a dynamic button with fixed width).

Reproducer

https://stackblitz.com/edit/vitejs-vite-su2uss?file=src%2FApp.tsx

System Information

System:
    OS: macOS 15.0
    CPU: (8) arm64 Apple M2
    Memory: 234.48 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.9.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.8.3 - /opt/homebrew/bin/npm
    bun: 1.1.27 - ~/.bun/bin/bun
    Watchman: 2024.09.23.00 - /opt/homebrew/bin/watchman
  Browsers:
    Safari: 18.0
  npmPackages:
    react: 18.3.1 => 18.3.1

Steps to reproduce the behavior

Go to stackblitz repo and you can clearly see the error.

Expected behavior

There should be text-overflow value for button label for this case

@ddoemonn ddoemonn added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 30, 2024
@ddoemonn ddoemonn linked a pull request Sep 30, 2024 that will close this issue
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 30, 2024
@melloware melloware added this to the 10.8.4 milestone Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants