File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 46
46
padding : 0
47
47
}
48
48
49
- # map-default-content-wrapper > div > h2 {
49
+ # map-default-content-wrapper > h2 {
50
50
font-weight : var (--calcite-font-weight-normal );
51
51
margin : 0 0 var (--space-4 );
52
52
line-height : 1.375 ;
Original file line number Diff line number Diff line change @@ -35,20 +35,20 @@ const getMapFrame = (url) => {
35
35
36
36
export default function decorate ( block ) {
37
37
const blockParams = block . querySelectorAll ( 'p' ) ;
38
-
39
- const textParameter = blockParams [ 0 ] . innerText ;
38
+ const heading = block . querySelector ( 'h2' ) ;
39
+ const blockText = blockParams [ 0 ] . innerText ;
40
40
const mapLink = blockParams [ 1 ] . innerText ;
41
41
block . textContent = '' ;
42
42
43
43
const gridContainer = div ( { class : 'grid-container' } ) ;
44
44
const frameWrapper = div ( { id : 'frame-wrapper' } ) ;
45
45
46
- const defaultContentContainer = document . querySelector ( '.map-container > .default-content-wrapper' ) ;
46
+ const defaultContentContainer = div ( ) ;
47
47
const nodeTextParam = p ( { id : 'map-text-content' } ) ;
48
- nodeTextParam . textContent = textParameter ;
48
+ nodeTextParam . textContent = blockText ;
49
49
const hr = horizontalRule ( { class : 'separator center' } ) ;
50
50
51
- const contentWrapperChildren = [ defaultContentContainer , hr , nodeTextParam ] ;
51
+ const contentWrapperChildren = [ defaultContentContainer , heading , hr , nodeTextParam ] ;
52
52
const defaultContentWrapper = div ( { id : 'map-default-content-wrapper' } ) ;
53
53
54
54
contentWrapperChildren . forEach ( ( child ) => {
You can’t perform that action at this time.
0 commit comments