Skip to content

Commit 76f451b

Browse files
committed
feat(tile-manager): styling improvements
1 parent 5d487f5 commit 76f451b

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ $theme: $material;
2323
box-shadow: var-get($theme, 'drag-elevation');
2424
}
2525

26+
[part~='resizing'] {
27+
opacity: .3;
28+
29+
&:hover {
30+
border: rem(1px) solid var-get($theme, 'border-color');
31+
}
32+
}
33+
2634
[part="content-container"] {
2735
background: var-get($theme, 'content-background');
2836
color: var-get($theme, 'content-color');

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
}
2222

2323
[part='actions'] {
24+
display: flex;
2425
gap: rem(8px);
2526
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
:host {
55
display: block;
6-
height: fit-content;
76
position: relative;
87
}
98

109
[part~='base'] {
1110
resize: both;
1211
overflow: auto;
12+
width: 100%;
13+
height: 100%;
1314
}
1415

1516
[part='content-container'] {

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import { styles } from './themes/tile-header.base.css.js';
88
* @element igc-card-header
99
*
1010
* @slot title - Renders the tile title
11-
* @slot subtitle - Renders the tile subtitle
1211
* @slot actions - Renders the tile actions
13-
* @slot - Renders content next to the tile title
1412
*
1513
* @csspart header - The tile header container
14+
* @csspart title - The tile title container
15+
* @csspart actions - The tile actions container
1616
*/
1717
export default class IgcTileHeaderComponent extends LitElement {
1818
public static readonly tagName = 'igc-tile-header';
@@ -27,25 +27,21 @@ export default class IgcTileHeaderComponent extends LitElement {
2727
return html`
2828
<div part="header">
2929
<slot part="title" name="title"></slot>
30-
<span part="actions">
30+
<section part="actions">
3131
<igc-icon-button
3232
variant="flat"
3333
collection="default"
3434
exportparts="icon"
3535
name="expand_content"
3636
></igc-icon-button>
37-
</span>
38-
<span part="actions">
3937
<igc-icon-button
4038
variant="flat"
4139
collection="default"
4240
exportparts="icon"
4341
name="fullscreen"
4442
></igc-icon-button>
45-
</span>
46-
<span part="actions">
4743
<slot name="actions"></slot>
48-
</span>
44+
</section>
4945
</div>
5046
`;
5147
}

0 commit comments

Comments
 (0)