Skip to content

Archives: Ignores the padding set in theme.json #57285

@iamtakashi

Description

@iamtakashi

Description

The archives block doesn't respect the setting in theme.json. This is only a problem in the editor. The block renders fine on the front of the site.

For example, TT4 only specifies the list block's padding, which should be respected in both the archives and the page list blocks. But the archives block keeps the default padding. Hence, they don't align.

Screenshot 2023-12-20 at 19 37 50

Another example with a different theme, the theme specifies the padding in theme.json, but it's ignored.

Screenshot 2023-12-20 at 19 44 33

The issue remains even without Gutenberg activated. Does this mean this is the wrong place to report the issue? If so, let me know the best place.

Step-by-step reproduction instructions

  • Open the editor and add an archives block.
  • Edit theme.json to change the padding.
{	"styles": {	"blocks": {	"core/archives": {	"spacing": {	"padding": {	"left": "50px"	}	}	}	}	} { 
  • Back to the editor and see the padding doesn't match in the archives block

Screenshots, screen recording, code snippet

No response

Environment info

  • WP 6.4.2
  • Gutenberg Trunk (although the issue remains without the plugin)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TestingNeeds further testing to be confirmed.[Block] ArchivesAffects the Archives Block[Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions