Skip to content

Commit

Permalink
Add missing pseudo-selectors to theme.json schema and documentation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored and Mamaduka committed Mar 21, 2023
1 parent dcfb709 commit 6f05e23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/how-to-guides/themes/theme-json.md
Expand Up @@ -1064,7 +1064,7 @@ h3 {

##### Element pseudo selectors

Pseudo selectors `:hover`, `:focus`, `:visited` are supported by Gutenberg.
Pseudo selectors `:hover`, `:focus`, `:visited`, `:active`, `:link`, `:any-link` are supported by Gutenberg.

```json
"elements": {
Expand Down
12 changes: 12 additions & 0 deletions schemas/json/theme.json
Expand Up @@ -1651,6 +1651,12 @@
},
":visited": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":link": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":any-link": {
"$ref": "#/definitions/stylesPropertiesComplete"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -1680,6 +1686,12 @@
},
":visited": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":link": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":any-link": {
"$ref": "#/definitions/stylesPropertiesComplete"
}
},
"additionalProperties": false
Expand Down

0 comments on commit 6f05e23

Please sign in to comment.