Make target area of slider thumb larger (#27550)

This commit is contained in:
Jan-Philipp Benecke
2025-10-17 18:12:08 +02:00
committed by GitHub
parent 01dd731622
commit a8e0d506b6

View File

@@ -59,6 +59,17 @@ export class HaSlider extends Slider {
background-color: var(--ha-slider-thumb-color, var(--primary-color));
}
#thumb:after {
content: "";
border-radius: 50%;
position: absolute;
width: calc(var(--thumb-width) * 2 + 8px);
height: calc(var(--thumb-height) * 2 + 8px);
left: calc(-50% - 4px);
top: calc(-50% - 4px);
cursor: pointer;
}
#slider:focus-visible:not(.disabled) #thumb,
#slider:focus-visible:not(.disabled) #thumb-min,
#slider:focus-visible:not(.disabled) #thumb-max {