Skip to content

Commit

Permalink
Styles: Apply correct style to default links
Browse files Browse the repository at this point in the history
By default, links are underlined, and the underline is removed on hover. That's what the CSS that was previously removed did. By moving the CSS into theme.json, subsequent block settings can override this (and they do, see site title, etc).

Follow up to 3b02a3b
  • Loading branch information
ryelle committed Jun 19, 2024
1 parent fe3ffc3 commit 1e85334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/wp-content/themes/wporg-parent-2021/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -936,14 +936,14 @@
},
"link": {
"typography": {
"textDecoration": "none"
"textDecoration": "underline"
},
"color": {
"text": "var(--wp--custom--link--color--text)"
},
":hover": {
"typography": {
"textDecoration": "underline"
"textDecoration": "none"
}
}
},
Expand Down

0 comments on commit 1e85334

Please sign in to comment.