-
Notifications
You must be signed in to change notification settings - Fork 4.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
Inline style rule for full-height Cover Block in 5.7 can't easily be overridden #29705
Comments
+1. Right now, this is only solvable through hacky CSS. Such as: |
I could see how that wouldn't work if it needed to take into account a pixel value though. |
Labelled as an enhancement, but it probably needs some more thought as to what the right solution is. I suppose one option is that by default a classname is used, but when the user adjusts the input it switches to an inline style. edit: It's worth reading through the PR to see why it was implemented the way it was - #26615 |
This is still a problem. It also doesn't take |
Bumping this -- it's still a problem for theme and plugin developers. |
Still a problem. |
Bumping this -- it's still a problem for theme and plugin developers. Copying in @WordPress/outreach for feedback. |
What problem does this address?
The new full-height button on the Cover Block adds a
style
attribute to the container, containingmin-height: 100vh
. This can only be overridden by Theme CSS with an unreliable[style="min-height:100vh"]
selector.The need for overriding the rule is e.g. in the event that the site has a header bar taking up e.g. 150px at the top of the page. Then, the first Cover Block would need to be min-height
calc(100vh - 150px)
, so that the bottom edge of the Block isn't below the fold.What is your proposed solution?
Apply the CSS rule through an appropriate CSS class name, which can then be overridden by the Theme CSS if necessary.
The text was updated successfully, but these errors were encountered: