Skip to content

Commit 1627699

Browse files
committed
refactor(theme): size the avatar only in the card thumbnail
1 parent a9fe54d commit 1627699

File tree

5 files changed

+6
-26
lines changed

5 files changed

+6
-26
lines changed

src/components/card/themes/card.content.base.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,3 @@
1313
::slotted(*) {
1414
margin: 0;
1515
}
16-
17-
::slotted(igc-avatar) {
18-
--ig-size: 1;
19-
}

src/components/card/themes/card.header.base.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
opacity: inherit;
1818
}
1919

20-
::slotted(igc-avatar) {
21-
--ig-size: 1;
22-
}
23-
2420
header {
2521
display: flex;
2622
flex-flow: column nowrap;
@@ -37,6 +33,8 @@ header {
3733
}
3834

3935
::slotted([slot='thumbnail']) {
36+
--ig-size: 1;
37+
4038
display: flex;
4139
align-self: flex-start;
4240
margin-inline-end: rem(16px);

src/components/card/themes/content.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,17 @@ import { css } from 'lit';
33
import type { Themes } from '../../../theming/types.js';
44
// Shared Styles
55
import { styles as bootstrap } from './shared/content/card.content.bootstrap.css.js';
6-
import { styles as indigo } from './shared/content/card.content.indigo.css.js';
76

87
const light = {
98
bootstrap: css`
109
${bootstrap}
1110
`,
12-
indigo: css`
13-
${indigo}
14-
`,
1511
};
1612

1713
const dark = {
1814
bootstrap: css`
1915
${bootstrap}
2016
`,
21-
indigo: css`
22-
${indigo}
23-
`,
2417
};
2518

2619
export const all: Themes = { light, dark };

src/components/card/themes/shared/content/card.content.indigo.scss

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/components/card/themes/shared/header/card.header.indigo.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
@use 'styles/utilities' as *;
22

33
:host {
4-
::slotted(igc-avatar) {
5-
--ig-size: 3;
6-
}
7-
84
[part='header'] {
95
gap: rem(2px);
106
}
117
}
128

9+
::slotted(igc-avatar[slot='thumbnail']) {
10+
--ig-size: 3;
11+
}
12+
1313
::slotted([slot='subtitle']) {
1414
@include type-style('body-2');
1515

0 commit comments

Comments
 (0)