Skip to content

Commit

Permalink
fix: use @error-color & @warning-color instead of @text-color-danger …
Browse files Browse the repository at this point in the history
…& @text-color-warning ant-design#16856
  • Loading branch information
MrHeer committed May 30, 2019
1 parent abb8692 commit 239c472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions components/style/themes/default.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
@code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
@text-color: fade(@black, 65%);
@text-color-secondary: fade(@black, 45%);
@text-color-warning: @gold-7;
@text-color-danger: @red-7;
@text-color-inverse: @white;
@icon-color: inherit;
@icon-color-hover: fade(@black, 75%);
Expand Down
4 changes: 2 additions & 2 deletions components/typography/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
}

&&-warning {
color: @text-color-warning;
color: @warning-color;
}

&&-danger {
color: @text-color-danger;
color: @error-color;
}

&&-disabled {
Expand Down

0 comments on commit 239c472

Please sign in to comment.