-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
NotchedOutline label may generate a large hidden box that generates overflow. #22301
Comments
Please provide a minimal reproduction test case. This would help a lot 👷 . |
Duplicate of #12255 |
What I am proposing to fix is not really a duplicate of #12255. There the problem is that labels that are too long for one line are not properly positioned. The issue I have is that even a short label (like "A B C D") generates a invisible overflowing box. |
@ThomasKleffel How do you reproduce the issue? What browser are you using? Do you have screenshots? |
We had handled this issue in #20067, however, Firefox doesn't work with overflow hidden on a fieldset. I think that the simplest will be to report Firefox the issue and wait for a fix. The usage of |
If the label of a NotchedOutline is not currently notched, the maxWidth of the legend is set to 0.01 - this means that the text in the that's inside might be wrapped if it's longer ("Label Template (for preview)" in my case) and generate a block that is higher than the NotchedOutline itself. The is hidden, so that's not noticeable, but it will generate overflow that might cause a container to scroll.
I have fixed this for me by adding "white-space: nowrap" to the CSS properties of the inside the legendLabelled class.
Edit: Minimal example: https://codesandbox.io/s/elated-gauss-pxwn8
The text was updated successfully, but these errors were encountered: