Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing pseudo-selectors to theme.json schema and documentation #49202

Merged
merged 2 commits into from Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/how-to-guides/themes/theme-json.md
Expand Up @@ -1067,7 +1067,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 @@ -1654,6 +1654,12 @@
},
":visited": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":link": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":any-link": {
"$ref": "#/definitions/stylesPropertiesComplete"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -1683,6 +1689,12 @@
},
":visited": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":link": {
"$ref": "#/definitions/stylesPropertiesComplete"
},
":any-link": {
"$ref": "#/definitions/stylesPropertiesComplete"
}
},
"additionalProperties": false
Expand Down