Skip to content

Commit a4e3077

Browse files
committed
fix(ui): fix style when card action is disabled
1 parent adde61a commit a4e3077

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/ui/src/components/card/demos/1.Basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function Demo() {
2929
</DCard.Content>
3030
<DCard.Actions
3131
dActions={[
32-
<DCard.Action title="edit">
32+
<DCard.Action title="edit" disabled>
3333
<EditOutlined />
3434
</DCard.Action>,
3535
<DCard.Action title="delete">

packages/ui/src/styles/components/card.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
padding: 0;
5656
margin: 0;
5757
font: inherit;
58-
color: var(--#{$rd-prefix}color-icon-decorator);
58+
color: var(--#{$rd-prefix}text-color-sub);
5959
vertical-align: top;
6060
cursor: pointer;
6161
background-color: transparent;
@@ -69,9 +69,9 @@
6969
color: var(--#{$rd-prefix}color-primary-lighter);
7070
}
7171

72-
&:disabled {
72+
&[disabled] {
73+
color: var(--#{$rd-prefix}color-disabled);
7374
pointer-events: none;
74-
filter: opacity(50%);
7575
}
7676
}
7777
}

0 commit comments

Comments
 (0)