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

[Toast] 能否支持修改不同theme下的样式 #1430

Closed
evy-u opened this issue Jun 5, 2024 · 2 comments · Fixed by #1432
Closed

[Toast] 能否支持修改不同theme下的样式 #1430

evy-u opened this issue Jun 5, 2024 · 2 comments · Fixed by #1432
Labels
enhancement New feature or request

Comments

@evy-u
Copy link

evy-u commented Jun 5, 2024

tdesign-mobile-vue 版本

1.2.0

重现链接

No response

重现步骤

  1. 官方API没有提供自定义主题下的样式修改(包括但不限于背景色,文字色)
  2. 想使用样式覆盖的方案,发现theme有值和无值时,t-toast的类名表现一样,无法做出区分

期望结果

期望API支持自定义样式

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Jun 5, 2024

👋 @evy-u,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Jun 5, 2024

@evy-u 收到反馈~,前置背景是设计上 theme 主题只与图标关联,不和基础样式挂钩,因此开发时没有额外提供类似t-toast--${theme}的 className,考虑到你这个场景,我们讨论一下是新增 theme 相关类名,还是新增 className props

@anlyyao anlyyao added the enhancement New feature or request label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants