Skip to content

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

Description

@wengooooo

现在的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。
);

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions