-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as not planned
Closed as not planned
Copy link
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonNeeds TestingNeeds further testing to be confirmed.Needs further testing to be confirmed.[Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.Gives the original author opportunity to update before closing. Can be reopened as needed.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
core/list-item blocks do not style consistantly when using section styles (JSON partial)
style is loaded via theme folder 'styles/block/my-style.json'
- List-item styles correctly when style is applied to the core/columns block
- styles are not applied consistently when style is applied to the core/list block
example json
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"slug": "imagedirect__wish-list",
"title": "Wish List",
"blockTypes": [
"core/list",
"core/columns"
],
"styles": {
"color": {
"text": "red"
},
"blocks": {
"core/list-item": {
"color": {
"background": "#eeeeee"
},
"border": {
"bottom": {
"color": "black",
"style": "dashed",
"width": "1px"
}
}
}
}
}
}Step-by-step reproduction instructions
- add example json to theme directory 'theme/styles/block'
- add a core/list block with a core/list-item
- add a core/columns block with a nested core/list block containing a core/list-item
- apply the 'wish list' style to both blocks
- Note the following:
- the list-item contained in the columns block is styled appropriately
- the list-item contained in the list block is un-styled
Screenshots, screen recording, code snippet
Environment info
WordPress - Version 6.8.2
Gutenberg - not activated or Version 21.6.0
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonNeeds TestingNeeds further testing to be confirmed.Needs further testing to be confirmed.[Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.Gives the original author opportunity to update before closing. Can be reopened as needed.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended