Skip to content

Commit 7c316df

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

template/components/InteractiveDemo/InteractiveDemo.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
width: 100%;
1616
max-width: fit-content;
1717
margin: 0 auto;
18-
background-color: var(--db-adaptive-bg-basic-level-1-default);
18+
background-color: var(--db-adaptive-bg-basic-level-1-default);
1919
}
2020

2121
.interactive-demo__card {
2222
display: none;
2323
}
24+
2425
.interactive-demo__card .db-card {
2526
overflow: hidden;
2627
}
@@ -74,7 +75,7 @@
7475

7576
/* Green (S-Bahn) */
7677
.interactive-demo [data-image-toggle-button][data-color="green"] {
77-
--demo-bg-active: var(--db-semantic-success-default);
78+
--demo-bg-active: var(--db-semantic-success-default, #2e7d32);
7879
--demo-bg-inactive: color-mix(in srgb, var(--db-semantic-success-default, #2e7d32) 22%, white 78%);
7980
}
8081
.db-shell[data-mode="light"] .interactive-demo [data-image-toggle-button][data-color="green"] {
@@ -86,7 +87,7 @@
8687

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

0 commit comments

Comments
 (0)