Skip to content

Commit e4f86f8

Browse files
committed
Fix cta mode decoration
1 parent 6872fb8 commit e4f86f8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

eds/blocks/call-to-action/call-to-action.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import { div } from '../../scripts/dom-helpers.js';
44
function decorateBlockSectionMode(block) {
55
block.classList.forEach((className) => {
66
if (className.startsWith('calcite-mode-')) {
7+
const mode = className.split('-')[2];
78
block.closest('.section')
89
.classList
9-
.add(className);
10+
.add(className, mode);
1011
}
1112
});
1213
}

eds/styles/styles.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
--esri-ui-opacity97-inverse: rgb(255 255 255/ 97%);
3333

3434
/* icon filters */
35-
--image-icon-filter: brightness(0) saturate(100%) invert(14%) sepia(10%) saturate(19%) hue-rotate(330deg) brightness(93%) contrast(91%);
35+
--image-icon-filter: brightness(0) saturate(100%) invert(14%) sepia(10%) saturate(19%) hue-rotate(330deg) brightness(93%) contrast(91%);
3636
--image-icon-filter-brand: brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(1143%) hue-rotate(177deg) brightness(95%) contrast(101%);
3737

3838
-webkit-font-smoothing: antialiased;
@@ -334,6 +334,11 @@ main {
334334
color: var(--calcite-ui-text-1);
335335
}
336336

337+
.section.dark {
338+
background-color: var(--calcite-ui-foreground-1);
339+
color: var(--calcite-ui-text-1);
340+
}
341+
337342
.video-iframe-box {
338343
align-items: center;
339344
background-color: var(--esri-ui-opacity80);
@@ -523,4 +528,4 @@ main {
523528

524529
.padding-trailer-6 {
525530
padding-block-end: 9rem;
526-
}
531+
}

0 commit comments

Comments
 (0)