Skip to content

Commit

Permalink
Fix underlined links inside boxes (#39337)
Browse files Browse the repository at this point in the history
* Remove underline from external links in boxes

* changelog

* Update changelog

* Fix margin issue for full-width plan feature card
  • Loading branch information
CodeyGuyDylan authored Sep 11, 2024
1 parent 8de48fd commit 1d28331
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@
margin-bottom: 0;

a.dops-section-nav-tab__link {
text-decoration: none;
span.components-external-link__contents {
text-decoration: none;
}
}

@include breakpoint( ">660px" ) {
Expand Down
11 changes: 5 additions & 6 deletions projects/plugins/jetpack/_inc/client/my-plan/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,6 @@
width: 49.5%;
}

@include breakpoint( ">660px" ) {
margin-bottom: 24px;
}

@include breakpoint( "<660px" ) {
max-width: 100%;
margin-bottom: rem( 8px );
Expand Down Expand Up @@ -213,6 +209,10 @@
button {
font-weight: 500;
font-size: var(--font-body-extra-small);

.components-external-link__contents {
text-decoration: none;
}
}
}

Expand All @@ -227,6 +227,7 @@
flex-direction: row;
align-items: stretch;
justify-content: space-between;
gap: 24px;
margin-bottom: rem( 32px );
margin-left: rem( -8px );
margin-right: rem( -8px );
Expand All @@ -237,8 +238,6 @@
}

.jp-landing__plan-features-card:nth-child(odd) {
margin-right: 24px;

@include breakpoint( "<660px" ) {
margin-right: 8px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
a {
white-space: nowrap;
}

.components-external-link__contents {
text-decoration: none;
}
}

.jp-recommendations-question__description-list {
Expand Down Expand Up @@ -191,6 +195,10 @@
width: 100%;
}
}

.components-external-link__contents {
text-decoration: none;
}
}

@include breakpoint( '<480px' ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
.components-external-link__icon {
margin-left: 4px;
}

.components-external-link__contents {
text-decoration: none;
}
}

&__timer {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Styles: update styling for external links

0 comments on commit 1d28331

Please sign in to comment.