Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SegmentedControl无法设置点击背景色 #511

Closed
1 task
jsbsdbd1025 opened this issue May 17, 2019 · 1 comment
Closed
1 task

SegmentedControl无法设置点击背景色 #511

jsbsdbd1025 opened this issue May 17, 2019 · 1 comment

Comments

@jsbsdbd1025
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

设置SegmentedControl的tintColor为#00B4B4(绿色)时

What is expected?

有良好的点击效果

What is actually happening?

在Android端点击后的颜色为
源码中underlayColor = setNormalizedColorAlpha(normalizeColor(tintColor), 0.3).toString(16) 展现出来是一个很恶心的颜色
并没有用主题中的segmented_control_fill_tap

Environment Info
antd 3.1.5
React 0.58.0
System Android
Browser Android

只要源码中用外面传进来的underlayColor覆盖下或者取segmented_control_fill_tap作为点击效果都行 希望能进行更新

@jsbsdbd1025
Copy link
Author

定位问题了 刚好这个色值前导0 在 setNormalizedColorAlpha后 得到 #b4b44d(应为#00b4b44d)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants