Skip to content

Commit 1955a14

Browse files
committed
updated ComparisonGrid component to use hds-theme-default class for HDS comparison block
(in this way its style does not get overwritten by the page-selected theme)
1 parent 9e741b3 commit 1955a14

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

showcase/app/components/shw/carbonization/comparison-grid/index.gts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface ShwCarbonizationComparisonGridSignature {
2121
}
2222

2323
export const THEMES = [
24-
'hds',
24+
'default',
2525
'cds-g0',
2626
'cds-g10',
2727
'cds-g90',
@@ -64,7 +64,7 @@ const ShwCarbonizationComparisonGrid: TemplateOnlyComponent<ShwCarbonizationComp
6464
{{/if}}
6565
{{#if (has-block "reference")}}
6666
{{#each THEMES as |theme|}}
67-
{{#unless (eq theme "hds")}}
67+
{{#unless (eq theme "default")}}
6868
<ShwCarbonizationComparisonGridItem
6969
@scope="reference"
7070
@theme={{theme}}

showcase/app/styles/showcase-components/carbonization/comparison-grid.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
display: grid;
1010
grid-template-areas:
11-
"hds cds-g0 cds-g10 cds-g90 cds-g100"
12-
"--- cwc-g0 cwc-g10 cwc-g90 cwc-g100";
11+
"default cds-g0 cds-g10 cds-g90 cds-g100"
12+
"------- cwc-g0 cwc-g10 cwc-g90 cwc-g100";
1313
grid-template-rows: auto auto;
1414
grid-template-columns: repeat(5, 1fr);
1515
row-gap: 12px;
@@ -18,10 +18,10 @@
1818

1919
.shw-carbonization-comparison-grid--side-by-side {
2020
grid-template-areas:
21-
"hds cds-g0 cwc-g0"
22-
"--- cds-g10 cwc-g10"
23-
"--- cds-g90 cwc-g90"
24-
"--- cds-g100 cwc-g100";
21+
"default cds-g0 cwc-g0"
22+
"------- cds-g10 cwc-g10"
23+
"------- cds-g90 cwc-g90"
24+
"------- cds-g100 cwc-g100";
2525
grid-template-rows: auto auto auto auto;
2626
grid-template-columns: repeat(3, 1fr);
2727

@@ -34,7 +34,7 @@
3434

3535
// ITEM
3636

37-
@each $area in 'hds', 'cds-g0', 'cds-g10', 'cds-g90', 'cds-g100', 'cwc-g0', 'cwc-g10', 'cwc-g90', 'cwc-g100' {
37+
@each $area in 'default', 'cds-g0', 'cds-g10', 'cds-g90', 'cds-g100', 'cwc-g0', 'cwc-g10', 'cwc-g90', 'cwc-g100' {
3838
.shw-carbonization-comparison-grid__item--area-#{$area} {
3939
grid-area: #{$area};
4040
}
@@ -53,7 +53,7 @@
5353
background-color: var(--content-background-color);
5454
}
5555

56-
.shw-carbonization-comparison-grid__item--area-hds {
56+
.shw-carbonization-comparison-grid__item--area-default {
5757
--content-foreground-color: var(--token-color-foreground-primary);
5858
--content-background-color: var(--token-color-surface-primary);
5959
}

0 commit comments

Comments
 (0)