Skip to content

Commit a9ac451

Browse files
authored
fix(card): size avatar only in the header thumbnail (#1873)
1 parent 1fa28ed commit a9ac451

File tree

5 files changed

+7
-23
lines changed

5 files changed

+7
-23
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
opacity: inherit;
1818
}
1919

20-
::slotted(igc-avatar) {
20+
::slotted([slot='thumbnail']),
21+
::slotted(igc-avatar[slot='thumbnail']) {
2122
--ig-size: 1;
2223
}
2324

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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
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([slot='thumbnail']),
10+
::slotted(igc-avatar[slot='thumbnail']) {
11+
--ig-size: 3;
12+
}
13+
1314
::slotted([slot='subtitle']) {
1415
@include type-style('body-2');
1516

0 commit comments

Comments
 (0)