-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Cover Block Height Input Conflicting with Min/Content-Height #17582
Comments
I believe this is the intended behavior that @jorgefilipecosta made in #17365 |
Yes, but:
|
Hi @epiqueras the input allows users to change the min-height, so although it seems the input is not being respected it is being respected as the min-height is being applied but as the content height is bigger the browser uses the content height. |
Yes, and that you can't set a number that's less than 50 pixels:
|
Hi @epiqueras, I submitted a PR to correct the label #17634.
Regarding the problem, users can't set a value less than 50 pixels when the blur occurs if the value was less than 50px the input is ignored. |
Why? |
I'm not sure, but I think it was decided that the minimum height a user can set is 50px this minimum was already part of the logic since the first PR that implemented the resizing. It is a constraint setting a smaller value is not possible; to me, this constraint makes sense as a smaller value does not make much sense on the cover block. |
Then we should keep the value and show a validation error message, "Please enter a value greater than...". Just clearing it is confusing. |
This very much feels like a bug. It's a very poor user experience at best. When I wanted to remove the minimum height just now I figured that entering What I would propose is:
That kind of makes sense, but seems like a dangerous assumption, and certainly my experience suggests one reason why someone would want a lower value. If there is going to be a value constraint, then a bunch of UI work needs to be done to clearly communicate that. But just removing the constraint both is more expected and presumably easier. |
Describe the Bug
The Cover Block's height input does not play nice with the block's
min-height
or content height.To Reproduce
Steps to reproduce the behavior:
Expected Behavior
The input should not let you input values lower than the content height or
min-height
.Desktop (please complete the following information):
Additional Context:
This was noted while reviewing #17371.
The text was updated successfully, but these errors were encountered: