Skip to content

Commit 2a0a3c2

Browse files
committed
Merge branch 'bgfix/use-shadow-custom-properties' into bugfix/replace-postcss-custom-properties-fallback-with-local-version
2 parents 418f94d + eb77ac8 commit 2a0a3c2

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

packages/uui-box/lib/uui-box.element.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ export class UUIBoxElement extends LitElement {
1515
css`
1616
:host {
1717
display: block;
18-
/* TODO: fix automatic fallback values for shadows shadows.*/
19-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
18+
box-shadow: var(--uui-shadow-depth-1);
2019
border-radius: var(--uui-border-radius);
2120
background-color: var(--uui-interface-surface);
2221
}

packages/uui-card/lib/uui-card.element.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export class UUICardElement extends SelectOnlyMixin(
2727
width: 100%;
2828
justify-content: center;
2929
box-sizing: border-box;
30-
/* TODO: fix automatic fallback values for shadows before we use them: var(--uui-shadow-depth-1)*/
31-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
30+
box-shadow: var(--uui-shadow-depth-1);
3231
border-radius: var(--uui-border-radius);
3332
min-height: var(--uui-layout-medium);
3433
background-color: var(--uui-interface-surface);

packages/uui-dialog/lib/uui-dialog.element.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ export class UUIDialogElement extends LitElement {
2020
var(--uui-interface-surface)
2121
);
2222
23-
/* TODO: fix automatic fallback values for shadows shadows. var(--uui-shadow-depth-5) */
24-
box-shadow: var(
25-
--uui-dialog-box-shadow,
26-
0 19px 38px rgba(0, 0, 0, 0.3),
27-
0 15px 12px rgba(0, 0, 0, 0.22)
28-
);
23+
box-shadow: var(--uui-shadow-depth-5);
2924
border-radius: var(
3025
--uui-dialog-border-radius,
3126
calc(var(--uui-border-radius) * 2)

packages/uui-toast-notification/lib/uui-toast-notification.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class UUIToastNotificationElement extends LitElement {
6767
display: block;
6868
6969
box-sizing: border-box;
70-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.21);
70+
box-shadow: var(--uui-shadow-depth-1);
7171
background-color: var(--uui-interface-surface);
7272
padding: var(--uui-size-layout-1);
7373
padding-right: var(--uui-size-layout-1);

0 commit comments

Comments
 (0)