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

Radio组件shape="button"时的背景颜色不对 #768

Closed
yangjinjun3 opened this issue Mar 7, 2023 · 1 comment · Fixed by #801
Closed

Radio组件shape="button"时的背景颜色不对 #768

yangjinjun3 opened this issue Mar 7, 2023 · 1 comment · Fixed by #801

Comments

@yangjinjun3
Copy link
Contributor

NutUI scenes(nutui 场景)

H5(@nutui/nutui-react)

NutUI-react version(nutui-react 版本)

1.4.9

React version(react 版本)

18.2.0

Operating environment(运行环境)

dev:h5

Citation method(引用方式)

npm

Node version(node 版本)

16.18.0

Browser and its version(浏览器及其版本)

Chrome(106.0.5249.119)

System and its version(系统及其版本)

MacOS(12.6)

Reproduction link(重现链接)

nutui.jd.com/h5/react/1x/

Steps to reproduce(重现步骤)

https://nutui.jd.com/h5/react/1x/#/zh-CN/component/radio

What is expected?(期望的结果是什么?)

和Vue版本一致

What is actually happening?(实际的结果是什么?)

和Vue版本不一致。
查看源代码,是这个样式导致的
.nut-radiogroup .nut-radio__button {
background-color: var(--nutui-gray-4, #f4f4f4);
}

@AnteeHub
Copy link
Contributor

AnteeHub commented Mar 8, 2023

补充描述:

vue 版本 radio 按钮默认颜色是 #f6f7f9, react 版本 radio 按钮的默认样式覆盖了原来按钮的颜色,变为 #f4f4f4

image

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

Successfully merging a pull request may close this issue.

2 participants