Skip to content

Commit

Permalink
Underline links by default and remove on hover / focus (#8257)
Browse files Browse the repository at this point in the history
  • Loading branch information
donnapep authored Oct 10, 2024
1 parent 309d204 commit 4f03c5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions pendant/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, feature
*/
a {
cursor: pointer;
text-decoration-line: none;
}
:is(h1, h2, h3, h4, h5, h6) a:is(:hover, :focus) {
text-underline-offset: 0.15em;
Expand Down Expand Up @@ -254,4 +253,4 @@ body > .is-root-container > .wp-block-template-part > .wp-block-cover,
.pendant-post-navigation .post-navigation-link-next {
text-align: right;
}
}
}
6 changes: 3 additions & 3 deletions pendant/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,19 +375,19 @@
},
"link": {
"typography": {
"textDecoration": "none"
"textDecoration": "underline"
},
"color": {
"text": "var(--wp--preset--color--foreground)"
},
":hover": {
"typography": {
"textDecoration": "underline"
"textDecoration": "none"
}
},
":focus": {
"typography": {
"textDecoration": "underline"
"textDecoration": "none"
}
}
}
Expand Down

0 comments on commit 4f03c5d

Please sign in to comment.