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

Field 设置 placeholder 颜色无效,placeholderClass、placeholderStyle、ConfigProvider设置 fieldPlaceholderTextColor 均无效 #607

Closed
1 of 7 tasks
LMchensir opened this issue Jan 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@LMchensir
Copy link

这个 Issue 涉及以下平台:

  • 微信小程序
  • 支付宝小程序
  • 百度小程序
  • 头条小程序
  • 快手小程序
  • QQ 轻应用
  • Web 平台(H5)

BUG 描述

Field 设置 placeholder 颜色无效,placeholderClass、placeholderStyle、ConfigProvider设置 fieldPlaceholderTextColor 均无效

设置 placeholder 的字体大小,背景颜色什么的属性都生效,唯独这个 placeholder 的字体颜色怎么设置都不生效

复现步骤
const themeVars = { fieldPlaceholderTextColor: '#e19a9a', fieldInputTextColor: '#e19a9a', }

<View className="edit-business-card-content"> <ConfigProvider themeVars={themeVars}> <CellGroup> <Field placeholderClass="edit-business-name-placeholder" placeholderStyle="color: #e19a9a" placeholder="请输入姓名" /> <Field label="职位" placeholder="请输入职位" /> </CellGroup> </ConfigProvider> <CellGroup> <Field label="手机号" placeholder="请输入手机号" /> <Field label="企业名称" placeholder="请输入企业名称" /> </CellGroup> </View>

期望结果

实际结果

截图
image
image
image

环境

附加信息

@zuolung zuolung added the bug Something isn't working label Feb 2, 2024
@zuolung
Copy link
Contributor

zuolung commented Feb 2, 2024

css变量导致placeholder-class解析错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants