Skip to content

Commit 6e27950

Browse files
committed
refactor(tile-manager): tile header styles
1 parent 0e2be36 commit 6e27950

File tree

11 files changed

+41
-85
lines changed

11 files changed

+41
-85
lines changed

src/components/tile-manager/themes/header.ts

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

src/components/tile-manager/themes/shared/header/tile-header.common.scss

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

src/components/tile-manager/themes/shared/header/tile-header.indigo.scss

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

src/components/tile-manager/themes/shared/header/tile-header.bootstrap.scss renamed to src/components/tile-manager/themes/shared/tile/tile.bootstrap.scss

File renamed without changes.

src/components/tile-manager/themes/shared/tile/tile.common.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,17 @@ $theme: $material;
6161
background: var-get($theme, 'overlay-background');
6262
}
6363
}
64+
65+
[part='header'] {
66+
background: var-get($theme, 'tile-background');
67+
border-top-left-radius: var-get($theme, 'border-radius');
68+
border-top-right-radius: var-get($theme, 'border-radius');
69+
}
70+
71+
[part='title'] {
72+
color: var-get($theme, 'title-color');
73+
}
74+
75+
igc-divider {
76+
--color: var-get($theme, 'divider-color');
77+
}

src/components/tile-manager/themes/shared/header/tile-header.fluent.scss renamed to src/components/tile-manager/themes/shared/tile/tile.fluent.scss

File renamed without changes.

src/components/tile-manager/themes/shared/tile/tile.indigo.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ $theme: $indigo;
2121

2222
margin: 0;
2323
}
24-
}
24+
}
25+
26+
[part='header'] {
27+
padding-block: sizable(rem(8px), rem(14px), rem(14px));
28+
}

src/components/tile-manager/themes/tile-header.base.scss

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

src/components/tile-manager/themes/tile.base.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,19 @@
7474
z-index: 10;
7575
}
7676

77-
// REVIEW copied from tile-header.base.scss
78-
7977
[part='header'] {
8078
display: flex;
8179
align-items: center;
80+
justify-content: space-between;
8281
gap: sizable(rem(12px), rem(16px), rem(16px));
8382
padding-block: sizable(rem(8px), rem(13px), rem(13px));
8483
padding-inline: sizable(rem(12px), rem(16px), rem(20px));
8584
}
8685

86+
[part='title'] {
87+
width: 100%;
88+
}
89+
8790
::slotted([slot='title']) {
8891
@include type-style('h6');
8992
@include ellipsis();
@@ -95,5 +98,4 @@
9598
[part='actions'] {
9699
display: flex;
97100
gap: rem(8px);
98-
margin-inline-start: auto;
99101
}

src/components/tile-manager/themes/tile.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,29 @@ import { css } from 'lit';
22

33
import type { Themes } from '../../../theming/types.js';
44
// Shared Styles
5+
import { styles as bootstrap } from './shared/tile/tile.bootstrap.css.js';
6+
import { styles as fluent } from './shared/tile/tile.fluent.css.js';
57
import { styles as indigo } from './shared/tile/tile.indigo.css.js';
68

79
const light = {
10+
bootstrap: css`
11+
${bootstrap}
12+
`,
13+
fluent: css`
14+
${fluent}
15+
`,
816
indigo: css`
917
${indigo}
1018
`,
1119
};
1220

1321
const dark = {
22+
bootstrap: css`
23+
${bootstrap}
24+
`,
25+
fluent: css`
26+
${fluent}
27+
`,
1428
indigo: css`
1529
${indigo}
1630
`,

0 commit comments

Comments
 (0)