Skip to content

Commit 219cdc5

Browse files
committed
fix css issues
1 parent 480a09b commit 219cdc5

File tree

2 files changed

+63
-6
lines changed

2 files changed

+63
-6
lines changed

src/components/Button/button.module.scss

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
:root[data-theme="dark"] {
1+
:root[data-theme='dark'] {
22
--button-primary-background-color: #1098fc;
33
--button-secondary-background-color: transparent;
44
--button-background-color: #1098fc;
55
--button-color: #141618;
66
--button-hover-background-color: #036ab5;
77
--button-hover-shadow: 0px 2px 8px 0px rgba(16, 152, 252, 0.4);
88
--button-active-background-color: #3baafd;
9-
--button-danger: #e88f97
9+
--button-danger: #e88f97;
1010
}
1111

12-
:root[data-theme="light"] {
12+
:root[data-theme='light'] {
1313
--button-primary-background-color: #0376c9;
1414
--button-secondary-background-color: transparent;
1515
--button-background-color: #0376c9;
1616
--button-color: #ffffff;
1717
--button-hover-background-color: #036ab5;
1818
--button-hover-shadow: 0px 2px 8px 0px rgba(3, 118, 201, 0.2);
1919
--button-active-background-color: #025ea1;
20-
--button-danger: #D73847
20+
--button-danger: #d73847;
2121
}
2222

2323
:root {
@@ -50,7 +50,7 @@ a.button {
5050
justify-content: center;
5151
align-items: center;
5252
min-width: 145px;
53-
transition-property: "box-shadow", "background-color";
53+
transition-property: 'box-shadow', 'background-color';
5454
transition-duration: 0.2s;
5555
transition-timing-function: ease;
5656

@@ -61,12 +61,18 @@ a.button {
6161
--button-hover-background-color: #26a2fc;
6262
}
6363

64+
/* Dark mode: Ensure primary buttons use proper dark theme colors */
65+
[data-theme='dark'] &.primary {
66+
background-color: var(--button-primary-background-color);
67+
color: var(--button-color);
68+
}
69+
6470
&.secondary {
6571
border: 1px solid rgba(3, 118, 201, 1);
6672
--button-color: rgba(3, 118, 201, 1);
6773
background-color: var(--button-secondary-background-color);
6874
&:hover {
69-
--button-color: #141618
75+
--button-color: #141618;
7076
}
7177
}
7278

src/pages/playground/styles.module.css

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@
253253
background-color: var(--ifm-color-primary-light);
254254
}
255255

256+
/* Dark mode: Better visibility for checked switches */
257+
[data-theme='dark'] .switch input:checked+.slider {
258+
background-color: var(--ifm-color-primary);
259+
}
260+
256261
.switch input:checked+.slider:before {
257262
background-color: var(--ifm-color-white);
258263
}
@@ -454,6 +459,14 @@ input:checked+.slider:before {
454459
color: var(--ifm-background-surface-color);
455460
}
456461

462+
/* Dark mode: Better contrast for preview buttons */
463+
[data-theme='dark'] .previewButton,
464+
[data-theme='dark'] .previewButton2 {
465+
background: var(--ifm-color-primary-dark);
466+
border: 1px solid var(--ifm-color-primary-dark);
467+
color: white;
468+
}
469+
457470
.previewButton:hover,
458471
.previewButton2:hover {
459472
background: var(--ifm-color-primary-light);
@@ -462,6 +475,14 @@ input:checked+.slider:before {
462475
transform: translateY(-1px);
463476
}
464477

478+
/* Dark mode: Better contrast for preview button hover */
479+
[data-theme='dark'] .previewButton:hover,
480+
[data-theme='dark'] .previewButton2:hover {
481+
background: var(--ifm-color-primary);
482+
border-color: var(--ifm-color-primary);
483+
color: white;
484+
}
485+
465486
.hideButton {
466487
display: flex;
467488
flex-direction: row;
@@ -625,8 +646,20 @@ input:checked+.slider:before {
625646
color: white;
626647
}
627648

649+
/* Dark mode: Ensure good contrast for active step numbers */
650+
[data-theme='dark'] .stepMenuItemActive .stepMenuNumber {
651+
background: var(--ifm-color-primary-dark);
652+
color: white;
653+
}
654+
628655
.stepMenuItemCompleted .stepMenuNumber {
629656
background: var(--ifm-color-success);
657+
color: black;
658+
}
659+
660+
/* Dark mode: Use darker success color for better visibility with black text */
661+
[data-theme='dark'] .stepMenuItemCompleted .stepMenuNumber {
662+
background: var(--consumer-green-dark);
630663
color: white;
631664
}
632665

@@ -720,6 +753,12 @@ input:checked+.slider:before {
720753

721754
.previousStep .stepProgressIndicator {
722755
background: var(--ifm-color-success);
756+
color: black;
757+
}
758+
759+
/* Dark mode: Use darker success color for better contrast with white text */
760+
[data-theme='dark'] .previousStep .stepProgressIndicator {
761+
background: var(--consumer-green-dark);
723762
color: white;
724763
}
725764

@@ -816,6 +855,12 @@ input:checked+.slider:before {
816855
letter-spacing: 0.5px;
817856
}
818857

858+
/* Dark mode: Use darker background for better contrast with white text */
859+
[data-theme='dark'] .stepProgressIndicator {
860+
background: var(--ifm-color-primary-dark);
861+
color: white;
862+
}
863+
819864

820865

821866
/* Step Separator */
@@ -851,6 +896,12 @@ input:checked+.slider:before {
851896
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
852897
}
853898

899+
/* Dark mode: Better contrast for completion indicator */
900+
[data-theme='dark'] .completionIndicator {
901+
background: linear-gradient(135deg, var(--consumer-green-dark) 0%, var(--institution-green-dark) 100%);
902+
color: white;
903+
}
904+
854905
/* Smooth transition animations */
855906
@keyframes fadeIn {
856907
from {

0 commit comments

Comments
 (0)