Skip to content

Commit 88cf14b

Browse files
committed
fix(tile-manager): dragging styles
1 parent 3d258e4 commit 88cf14b

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,22 @@ $theme: $material;
77
--component-size: var(--ig-size, #{var-get($theme, 'default-size')});
88
}
99

10-
[part='base'] {
10+
[part~='base'] {
1111
background: var-get($theme, 'tile-background');
1212
border-radius: var-get($theme, 'border-radius');
1313
border: rem(1px) solid var-get($theme, 'border-color');
14+
box-shadow: var-get($theme, 'resting-elevation');
1415

1516
&:hover {
1617
border-color: var-get($theme, 'hover-border-color');
1718
}
1819
}
1920

21+
[part~='dragging'] {
22+
opacity: .6;
23+
box-shadow: var-get($theme, 'drag-elevation');
24+
}
25+
2026
[part="content-container"] {
2127
background: var-get($theme, 'content-background');
2228
color: var-get($theme, 'content-color');

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
position: relative;
88
}
99

10-
[part='base'] {
10+
[part~='base'] {
1111
resize: both;
1212
overflow: auto;
1313
}
@@ -30,13 +30,18 @@
3030
height: 100%;
3131
overflow: visible;
3232
isolation: isolate;
33-
}
3433

35-
[part='drag-over'] {
36-
opacity: 0.5;
37-
pointer-events: none;
34+
[part~='base'] {
35+
width: 100%;
36+
height: 100%;
37+
}
3838
}
3939

40+
// [part~='drag-over'] {
41+
// opacity: 0.5;
42+
// pointer-events: none;
43+
// }
44+
4045
// .resize-handle {
4146
// position: absolute;
4247
// width: 15px;

0 commit comments

Comments
 (0)