Skip to content

Commit e8b7322

Browse files
committed
Fix slider padding and range input styling
1 parent a9b6683 commit e8b7322

File tree

1 file changed

+5
-2
lines changed
  • components/dash-core-components/src/components/css

1 file changed

+5
-2
lines changed

components/dash-core-components/src/components/css/sliders.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@
77
touch-action: none;
88
width: 100%;
99
height: 14px;
10-
padding: 8px 0 28px 0;
10+
padding: 18px 0 18px 0;
1111
box-sizing: border-box;
1212
/* Override Radix's default margin/padding behavior */
1313
--radix-slider-thumb-width: 16px;
1414
}
1515

16+
.dash-slider-root.has-marks {
17+
padding: 8px 0 28px 0;
18+
}
19+
1620
.dash-slider-root[data-orientation='vertical'].has-marks {
1721
padding-bottom: 0px;
1822
}
@@ -187,7 +191,6 @@
187191

188192
.dash-range-slider-input {
189193
width: 64px;
190-
margin-top: 8px;
191194
text-align: center;
192195
-moz-appearance: textfield;
193196
}

0 commit comments

Comments
 (0)