fix: 优化Slider拖动时tooltip文字颜色,确保可见性
- 设置 Slider tooltip 背景为深色 rgba(0, 0, 0, 0.75) - 设置 tooltip 文字颜色为白色,确保在任何背景下都清晰可见 - 添加全局样式规则,覆盖Antd默认样式 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -72,3 +72,14 @@ html, body, #root { height: 100%; }
|
|||||||
h1, .ant-typography h1 { font-size: 22px; }
|
h1, .ant-typography h1 { font-size: 22px; }
|
||||||
h2, .ant-typography h2 { font-size: 18px; }
|
h2, .ant-typography h2 { font-size: 18px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Slider tooltip 提示框文字颜色优化 */
|
||||||
|
.ant-slider-tooltip-inner {
|
||||||
|
background-color: rgba(0, 0, 0, 0.75) !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-slider .ant-tooltip-inner {
|
||||||
|
background-color: rgba(0, 0, 0, 0.75) !important;
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user