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

能否通过scss的@forward覆盖button-primary的值 #80

Open
wengooooo opened this issue Jan 14, 2025 · 0 comments
Open

能否通过scss的@forward覆盖button-primary的值 #80

wengooooo opened this issue Jan 14, 2025 · 0 comments

Comments

@wengooooo
Copy link

现在的scss只能覆盖el-button类型,不能覆盖el-button--primary, el-button--success等等类型。
我没找到如果通过@forward覆盖el-button-primary的方法,如果可以实现请给我一个例子,谢谢。

@forward 'element-plus/theme-chalk/src/common/var.scss' with (
  // do not use same name, it will override.
  $colors: $--colors,
  $button-padding-horizontal: ('default': 50px),
  $button: ('hover-bg-color': #000, 'text-color': red,), # 可以覆盖el-button的hover-bg-color值,但是不知道怎么写才能覆盖el-button-primary的hover-bg-color。
);
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

No branches or pull requests

1 participant