Skip to content

Commit 3f434f1

Browse files
committed
refactor(tile-manager): styling improvements
1 parent a7d0497 commit 3f434f1

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

src/components/tile-manager/resize-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default class IgcResizeComponent extends EventEmitterMixin<
2929

3030
public static styles = css`
3131
:host {
32-
display: block;
32+
display: contents;
3333
}
3434
3535
[part='resize-base'] {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
height: 100%;
1414
}
1515

16+
div[part~='base'] {
17+
position: absolute;
18+
}
19+
1620
[part='content-container'] {
1721
display: block;
1822
overflow: auto;

src/components/tile-manager/tile.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,23 @@ export default class IgcTileComponent extends EventEmitterMixin<
378378

379379
// REVIEW
380380
protected ghostFactory = () => {
381+
const ghostBackground = window
382+
.getComputedStyle(this)
383+
.getPropertyValue('--placeholder-background');
384+
385+
const ghostBorder = window
386+
.getComputedStyle(this)
387+
.getPropertyValue('--ghost-border');
388+
381389
const ghost = this.cloneNode(true) as IgcTileComponent;
382390
Object.assign(ghost.style, {
383391
position: 'absolute',
384392
top: 0,
385393
left: 0,
386394
zIndex: 1000,
387-
opacity: 0.75,
388-
filter: 'drop-shadow(1px 1px 3px #333)',
395+
background: ghostBackground,
396+
border: `1px solid ${ghostBorder}`,
397+
borderRadius: '4px',
389398
width: '100%',
390399
height: '100%',
391400
gridRow: '',

0 commit comments

Comments
 (0)