Docs NeutralColorPalette section has wrong hint. #48970
Labels
🐛 Bug
Ant Design Team had proved that this is a bug.
help wanted
The suggestion or request has been accepted, we need you to help us by sending a pull request.
Reproduction link
https://ant-design.antgroup.com/docs/spec/colors#palette-generation-tool
Steps to reproduce
Select a main color with low saturation and lightness. A hint will warn. But the Brightness value is wrong.
What is expected?
The Brightness value is wrong.
What is actually happening?
The Brightness value is correct.
File '.dumi/theme/common/Color/ColorPaletteTool.tsx' line 44 write
text = locale.brightness((s * 100).toFixed(2));
, I think it's why that hint is wrong. See 'ant-design/.dumi/theme/common/Color/ColorPaletteTool.tsx
Line 44 in b62b819
The text was updated successfully, but these errors were encountered: