Skip to content

Commit

Permalink
Add v5.2 fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwjdwjdw committed Mar 23, 2024
1 parent c12f27c commit 3f19f79
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/css/chem_h_subtheme.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/js/chem_h_subtheme.behaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

// Heading change for the halfpill title banner.
$('.chemh-wrapper--banner-halfpill-title h2').contents().unwrap().wrap('<h1/>');
$('.chemh-wrapper--banner-halfpill-title h3').contents().unwrap().wrap('<h1/>');
$('.chemh-wrapper--banner-halfpill-title h4').contents().unwrap().wrap('<h1/>');
$('.chemh-wrapper--banner-halfpill-title .su-font-splash').contents().unwrap().wrap('<h1/>');

// Bckground color needed on only the Halfpill title banner.
$('.chemh-wrapper--banner-halfpill-title').parents().find('.su-page-banner').addClass('su-page-banner--title');
Expand Down
9 changes: 7 additions & 2 deletions src/scss/components/banner/_banner--fullpill.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,16 @@ $banner-circle--sm-image-width: 150px;
}

.su-card__contents {

h2 {
@include type-a;
}

h2,
h3,
h4,
.su-font-splash {
@include responsive-spacing('margin-bottom', -1);
@include chemh-heading--badge;
@include type-a;

color: $su-color-white;
font-family: $su-font-sans;
Expand Down
3 changes: 0 additions & 3 deletions src/scss/theme/_headings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ h2 {
h3 {
@include type-b;
font-weight: $su-font-bold;
line-height: 5.2rem;
/* identical to box height, or 149% */
letter-spacing: -1.5px;
color: $chemh-color-true-black;
Expand All @@ -31,7 +30,6 @@ h3 {
h4 {
@include type-c;
font-weight: $su-font-bold;
line-height: 3.8rem;
/* identical to box height, or 136% */
letter-spacing: -1px;
color: $chemh-color-true-black;
Expand All @@ -40,7 +38,6 @@ h4 {
h5 {
@include type-c;
font-weight: $su-font-bold;
line-height: 3.8rem;
/* identical to box height, or 136% */
letter-spacing: -1px;
color: $chemh-color-true-black;
Expand Down
6 changes: 4 additions & 2 deletions src/scss/theme/_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ a {
background-color: $chemh-color-digital-blue;
}

h2 {
h2,
h3 {
color: $chemh-color-digital-blue;
}
}
Expand All @@ -155,7 +156,8 @@ a {
&:focus {
color: $chemh-color-digital-blue;

h2 {
h2,
h3 {
color: $chemh-color-digital-blue;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
{%- endif -%}

{% set news_url = news_url|render|striptags("<drupal-render-placeholder>")|trim %}
{% set header_tag = variant == 'h3_header' ? 'h3' : 'h2' %}

<article{{ attributes.addClass(classes) }}>
{%- if news_url is not empty -%}
Expand All @@ -59,9 +60,9 @@
{%- if news_url is not empty -%}
<a {{ news_url_attributes.addClass('su-news-vertical-teaser__link') }} href="{{ news_url }}">
{%- endif -%}
<h2 class="su-link su-card__link">
<{{ header_tag }} class="su-link su-card__link">
{{- news_vertical_teaser_headline -}}
</h2>
</{{ header_tag }}>
{%- if news_url is not empty -%}
</a>
{%- endif -%}
Expand Down

0 comments on commit 3f19f79

Please sign in to comment.