Skip to content

Commit 4457bf5

Browse files
committed
feat(): add overflow hidden for cards and background to controls
1 parent 6a972b7 commit 4457bf5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

template/components/InteractiveDemo/InteractiveDemo.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
width: 100%;
1616
max-width: fit-content;
1717
margin: 0 auto;
18+
background-color: var(--db-adaptive-bg-basic-level-1-default);
1819
}
1920

2021
.interactive-demo__card {
2122
display: none;
2223
}
24+
.interactive-demo__card .db-card {
25+
overflow: hidden;
26+
}
2327

2428
.interactive-demo__card[data-active="true"] {
2529
display: block;
@@ -70,7 +74,7 @@
7074

7175
/* Green (S-Bahn) */
7276
.interactive-demo [data-image-toggle-button][data-color="green"] {
73-
--demo-bg-active: var(--db-semantic-success-default, #2e7d32);
77+
--demo-bg-active: var(--db-semantic-success-default);
7478
--demo-bg-inactive: color-mix(in srgb, var(--db-semantic-success-default, #2e7d32) 22%, white 78%);
7579
}
7680
.db-shell[data-mode="light"] .interactive-demo [data-image-toggle-button][data-color="green"] {
@@ -82,7 +86,7 @@
8286

8387
/* Blue (Station & Service) */
8488
.interactive-demo [data-image-toggle-button][data-color="blue"] {
85-
--demo-bg-active: var(--db-semantic-informational-default, #1565c0);
89+
--demo-bg-active: var(--db-semantic-informational-default);
8690
--demo-bg-inactive: color-mix(in srgb, var(--db-semantic-informational-default, #1565c0) 22%, white 78%);
8791
}
8892
.db-shell[data-mode="light"] .interactive-demo [data-image-toggle-button][data-color="blue"] {

0 commit comments

Comments
 (0)