File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed
Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { getCurrentFiltersArray } from "../filter-group/filter-group-utils.js";
2222 * Create markup for ideas feature section from data/content, and return it.
2323 * Title text is required.
2424 * @param {IdeasFeatureContent } featureContent
25- * @returns {HTMLDivElement |null } Markup of feature, or null if missing required content.
25+ * @returns {HTMLElement |null } Markup of feature, or null if missing required content.
2626 */
2727export const buildIdeasFeature = ( featureContent ) => {
2828 // Check for required content.
@@ -32,7 +32,7 @@ export const buildIdeasFeature = (featureContent) => {
3232
3333 // Create markup.
3434 // This element is both a grid item for the larger page layout, and a grid container for its children.
35- const feature = document . createElement ( "div " ) ;
35+ const feature = document . createElement ( "aside " ) ;
3636 feature . classList . add ( "grid-item" , "grid-item--100" , "ideas__feature" ) ;
3737
3838 // Content side which contains text elements and button.
Original file line number Diff line number Diff line change 4343 }
4444
4545 .page-header__description {
46- font-weight : var (--spectrum-medium -font-weight );
46+ font-weight : var (--spectrum-body -font-weight );
4747 line-height : 1.5 ;
4848 }
4949
50+ .page-header__description--with-byline {
51+ font-weight : var (--spectrum-medium-font-weight );
52+ }
53+
5054 .page-header__description ,
5155 .page-header__byline {
52- margin-block-end : 1.25rem ;
56+ margin-block : 0 1.25rem ;
5357
5458 @media (min-width : 48rem ) {
5559 margin-block-end : 1.875rem ;
9599 }
96100
97101 .page-header__description {
98- font-size : var (--body-size-l );
102+ font-size : var (--body-size-m );
99103 }
100104
101105 .page-header__description--with-byline {
109113 & h1 {
110114 font-size : var (--spectrum-font-size-1100 );
111115 }
116+
112117 .page-header__description--with-byline {
113118 font-size : var (--title-size-m );
114119 }
120+
115121 .page-header-byline__author {
116122 font-size : var (--title-size-s );
117123 }
123129 font-size : var (--heading-size-xl );
124130 }
125131
126- .page-header__description {
127- font-size : var (--body-size-xl );
128- }
129-
130132 .page-header__description--with-byline {
131133 font-size : var (--title-size-xl );
132134 }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export default async function decorate(block) {
2626
2727 // if there is a description, add it as an h2
2828 if ( pageHeaderData . description ) {
29- const pageDescription = document . createElement ( "div " ) ;
29+ const pageDescription = document . createElement ( "p " ) ;
3030 pageDescription . classList . add ( "page-header__description" ) ;
3131
3232 // if there is a byline, the description uses
You can’t perform that action at this time.
0 commit comments