theme.json schema: Incorrect validation on filter
, outline
, shadow
#44442
Labels
[Type] Developer Documentation
Documentation for developers
Description
Related to:
JSON schema validation does not work correctly for
filter
,outline
, andshadow
, which are style supports recently added totheme.json
.These properties are considered invalid properties after entry, even though they are displayed as a list of input candidates by the code editor. This would mean that the JSON schema definitions are inconsistent.
This problem occurs for the following properties:
styles.outline
styles.shadow
styles.elements.button.:active.outline
styles.elements.button.:focus.outline
styles.elements.button.:hover.outline
styles.blocks.{blockName}.filter
styles.blocks.{blockName}.outline
styles.blocks.{blockName}.shadow
I will update the schema appropriately according to the expected specifications.
Step-by-step reproduction instructions
3185bedcdcdee03a415afa0ecb79724b.mp4
Screenshots, screen recording, code snippet
The following is a list of all possible properties with
filter
,outline
, andshadow
added.As you can see, some properties are considered invalid.
Environment info
No response
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
The text was updated successfully, but these errors were encountered: