-
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
File Block: Makes the button an element button #41239
Conversation
Size Change: +25 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
0d0906d
to
1d4c945
Compare
I'm getting specificity issues here too using Blockbase with this PR: |
There's also a missing block deprecation here (extra classname for the file block). Please can you ensure that all the blocks that had support for all these new elements (new classnames) have the needed deprecations. See #45153 |
Deprecation added here: #45159 I'll follow up with the others shortly. |
Thanks @scruffian |
What?
Makes the button in the file block a button element.
Why?
This enables themes to target the button in file blocks without custom CSS.
How?
Adds the experimental class name to the button. The shortcoming of the approach is that it won't work for blocks that have already been serialised. The alternative approach is to add the file block button class name to the list of selectors in the element selector, but this will cause bloat to this selector which we will need to support forever.
This approach is a compromise which will work for newly added form blocks, but not existing ones.
Testing Instructions
Screenshots or screencast
cc @WordPress/block-themers