Skip to content

Commit

Permalink
Twenty Nineteen: Define underline thickness for links.
Browse files Browse the repository at this point in the history
This changeset adds `text-decoration-thickness: 2px;` to all underlined link to ensure that underline thickness stay consistent across browsers. This fixes an issue where the underline style on links using the Hoefler Text font was too thin in Firefox.

Props allancole, sabernhardt, danfarrow, audrasjb, neychok, multidots1896, maartenj.
Fixes #45925.


git-svn-id: https://develop.svn.wordpress.org/trunk@54171 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Sep 15, 2022
1 parent 39617d8 commit 4c10e3e
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ a:focus {
outline: thin;
outline-style: dotted;
text-decoration: underline;
text-decoration-thickness: 2px;
}

h1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ a {
&:focus {
outline: thin dotted;
text-decoration: underline;
text-decoration-thickness: 2px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@

a {
text-decoration: underline;
text-decoration-thickness: 2px;

&:hover {
text-decoration: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@

a {
text-decoration: underline;
text-decoration-thickness: 2px;

&.button,
&:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@

a {
text-decoration: underline;
text-decoration-thickness: 2px;
}

.wp-calendar-table {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ a {

&:focus {
text-decoration: underline;
text-decoration-thickness: 2px;
}
}
6 changes: 6 additions & 0 deletions src/wp-content/themes/twentynineteen/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -2471,6 +2471,7 @@ a:hover {

a:focus {
text-decoration: underline;
text-decoration-thickness: 2px;
}

/* Elements */
Expand Down Expand Up @@ -2512,6 +2513,7 @@ a:focus {
outline: thin;
outline-style: dotted;
text-decoration: underline;
text-decoration-thickness: 2px;
}

h1,
Expand Down Expand Up @@ -2760,6 +2762,7 @@ a:active {
a:focus {
outline: thin dotted;
text-decoration: underline;
text-decoration-thickness: 2px;
}

/*--------------------------------------------------------------
Expand Down Expand Up @@ -4423,6 +4426,7 @@ body.page .main-navigation {

.entry .entry-content a {
text-decoration: underline;
text-decoration-thickness: 2px;
}

.entry .entry-content a.button, .entry .entry-content a:hover {
Expand Down Expand Up @@ -4900,6 +4904,7 @@ body.page .main-navigation {

.comment .comment-content a {
text-decoration: underline;
text-decoration-thickness: 2px;
}

.comment .comment-content a:hover {
Expand Down Expand Up @@ -5225,6 +5230,7 @@ body.page .main-navigation {

.widget_calendar .calendar_wrap a {
text-decoration: underline;
text-decoration-thickness: 2px;
}

.widget_calendar .calendar_wrap .wp-calendar-table {
Expand Down
6 changes: 6 additions & 0 deletions src/wp-content/themes/twentynineteen/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2471,6 +2471,7 @@ a:hover {

a:focus {
text-decoration: underline;
text-decoration-thickness: 2px;
}

/* Elements */
Expand Down Expand Up @@ -2512,6 +2513,7 @@ a:focus {
outline: thin;
outline-style: dotted;
text-decoration: underline;
text-decoration-thickness: 2px;
}

h1,
Expand Down Expand Up @@ -2760,6 +2762,7 @@ a:active {
a:focus {
outline: thin dotted;
text-decoration: underline;
text-decoration-thickness: 2px;
}

/*--------------------------------------------------------------
Expand Down Expand Up @@ -4429,6 +4432,7 @@ body.page .main-navigation {

.entry .entry-content a {
text-decoration: underline;
text-decoration-thickness: 2px;
}

.entry .entry-content a.button, .entry .entry-content a:hover {
Expand Down Expand Up @@ -4906,6 +4910,7 @@ body.page .main-navigation {

.comment .comment-content a {
text-decoration: underline;
text-decoration-thickness: 2px;
}

.comment .comment-content a:hover {
Expand Down Expand Up @@ -5231,6 +5236,7 @@ body.page .main-navigation {

.widget_calendar .calendar_wrap a {
text-decoration: underline;
text-decoration-thickness: 2px;
}

.widget_calendar .calendar_wrap .wp-calendar-table {
Expand Down

0 comments on commit 4c10e3e

Please sign in to comment.