Skip to content

Commit

Permalink
fix(comp:typography): fix typography disabled style (#687)
Browse files Browse the repository at this point in the history
fix #567
  • Loading branch information
Lincoln-xzc committed Dec 30, 2021
1 parent be02417 commit 41d5225
Showing 1 changed file with 32 additions and 23 deletions.
55 changes: 32 additions & 23 deletions packages/components/typography/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,6 @@
overflow-wrap: break-word;
color: @typography-default-color;

// text

&-secondary {
color: @typography-color-secondary;
}

&-success {
color: @typography-success;
}

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

&-error {
color: @typography-error;
}

&-disabled {
color: @typography-disabled-color;
cursor: not-allowed;
}

// tag

mark {
Expand Down Expand Up @@ -121,6 +98,38 @@
}
}

// text

&-secondary {
color: @typography-color-secondary;
}

&-success {
color: @typography-success;
}

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

&-error {
color: @typography-error;
}

&-disabled {
color: @typography-disabled-color;
cursor: not-allowed;

> * {
pointer-events: none;
}

> a {
color: @typography-disabled-color;
cursor: not-allowed;
}
}

// list

ul,
Expand Down

0 comments on commit 41d5225

Please sign in to comment.