feat(slider): row 215 — hide the value tooltip on untouched sliders
Core hides the slider tooltip via jQuery .hide() only when no default position is set; with slider_default_set an untouched slider keeps a visible tooltip (and the slider-touched class — see BUG_REPORT_slider_touched_class_unreliable_with_default_set.md). While the slider-is-untouched class (row 214) is set, also hide .slider .tooltip. No !important on purpose: on touch core sets an inline display via .show(), which wins over this rule, so the tooltip reappears exactly when the slider is touched. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
368929c1cf
commit
22c1f230b3
1 changed files with 9 additions and 0 deletions
|
|
@ -40,3 +40,12 @@
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* row 215: while untouched, also hide the value tooltip — core only does that
|
||||||
|
(jQuery .hide()) when no default position is set; with slider_default_set
|
||||||
|
the tooltip stays visible on an untouched slider. No !important on purpose:
|
||||||
|
on touch core sets an inline display via .show(), which wins over this rule
|
||||||
|
(and slider-is-untouched is removed anyway). */
|
||||||
|
.slider-item.slider-is-untouched .slider .tooltip {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue