From a0ef9e233418eca96d511f18fafcdbe5c65e46d6 Mon Sep 17 00:00:00 2001 From: duzhichao <1098974448@qq.com> Date: Mon, 20 Oct 2025 19:26:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96Slider=E6=8B=96?= =?UTF-8?q?=E5=8A=A8=E6=97=B6tooltip=E6=96=87=E5=AD=97=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=E5=8F=AF=E8=A7=81=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 设置 Slider tooltip 背景为深色 rgba(0, 0, 0, 0.75) - 设置 tooltip 文字颜色为白色,确保在任何背景下都清晰可见 - 添加全局样式规则,覆盖Antd默认样式 🤖 Generated with Claude Code Co-Authored-By: Claude --- zlt-web/react-web-next/src/global.less | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zlt-web/react-web-next/src/global.less b/zlt-web/react-web-next/src/global.less index dd165ee3..3ebcb248 100644 --- a/zlt-web/react-web-next/src/global.less +++ b/zlt-web/react-web-next/src/global.less @@ -72,3 +72,14 @@ html, body, #root { height: 100%; } h1, .ant-typography h1 { font-size: 22px; } 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; +}