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

SHS-5996/SHS-5997: WYSIWYG link styles with arrow or external-link show green icon instead of matching the colour palette / WYSIWYG link style "External Link" does not show external icon #1703

Merged
merged 8 commits into from
Jan 10, 2025
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,18 @@ drupal-media {
.ck-editor .ck.ck-toolbar.ck-toolbar_grouping > .ck-toolbar__items {
flex-wrap: wrap;
}

/* Match styles of external link in the WYSIWYG style's dropdown preview with the original design */
.ck-style-grid__button__preview a.hs-external-link {
@include hb-link--inline;
@include hb-external-link-icon;

/* Resize the icon, using px instead of rem, because when using rem the icon looks way bigger */
&::after {
width: 18px;
height: 11px;
margin-bottom: 0;
background-size: 11px;
padding-left: 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
background-image: svg(hc-get-icons($icon, $icon-color));

} @else {
$icon-color: map-get(map-get($hc-colorful-pairings, 'ocean'), $color);
$icon-color: map-get(map-get($hc-colorful-pairings, 'cardinal'), $color);
background-image: svg(hc-get-icons($icon, $icon-color));

.hc-pairing-ocean & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ blockquote:nth-child(n) {
}

a[href*="//"].hs-external-link,
.hs-external-link a[href*="//"]
{
.hs-external-link a[href*="//"] {
@include hb-link--inline;
@include hb-external-link-icon;

Expand Down
Loading