mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix: Slider tooltip text not align center (#43430)
* style: support centering text in tooltip in slider * fix: formatting code
This commit is contained in:
parent
7d9429ba75
commit
2f0c82f59d
@ -57,7 +57,7 @@ interface SliderToken extends FullToken<'Slider'> {
|
||||
|
||||
// =============================== Base ===============================
|
||||
const genBaseStyle: GenerateStyle<SliderToken> = (token) => {
|
||||
const { componentCls, controlSize, dotSize, marginFull, marginPart, colorFillContentHover } =
|
||||
const { componentCls, antCls, controlSize, dotSize, marginFull, marginPart, colorFillContentHover } =
|
||||
token;
|
||||
|
||||
return {
|
||||
@ -256,6 +256,10 @@ const genBaseStyle: GenerateStyle<SliderToken> = (token) => {
|
||||
cursor: `not-allowed !important`,
|
||||
},
|
||||
},
|
||||
|
||||
[`&-tooltip ${antCls}-tooltip-inner`]:{
|
||||
minWidth: "unset",
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user