-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Block] ArchivesAffects the Archives BlockAffects the Archives Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
For example, I'd like to reduce the left padding of the Archives block.
So I set the padding in the theme.json
"styles": {
"blocks": {
"core/archives": {
"spacing": {
"padding": {
"left": "0"
}
}
}
}
}
This works on the front of the site.
However, the block remains unchanged in the editor due to this default style overriding the custom style.
ul.wp-block-archives {
padding-left: 2.5em;
}
Related:
- The archives block has different padding compared to other lists #69007
- Archives: Update padding for archives block to remain consistent with
list
#69008
Step-by-step reproduction instructions
- Go to the editor
- Add an archives block
- Add custom padding value in the theme.json
- See the block in the editor
Screenshots, screen recording, code snippet
No response
Environment info
- WP:6.8.2
- Gutenberg: Trunk
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Mayank-Tripathi32
Metadata
Metadata
Assignees
Labels
[Block] ArchivesAffects the Archives BlockAffects the Archives Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended