Skip to content

Commit

Permalink
fix: should not asideControlClickableOnDisabled if not disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
chenesan committed Mar 30, 2022
1 parent 1587e69 commit 673ad51
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/mixins/rowComp.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,14 @@ const rowComp = ({
tag,
bold,
asideControlClickableOnDisabled,
disabled,
} = this.props;

const textLayoutProps = getTextLayoutProps(align, !!icon);
const asideControlClickableProps = (
asideControlClickableOnDisabled
(asideControlClickableOnDisabled && disabled)
? {
onClick: (event) => { event.stopPropagation(); }
onClick: (event) => { event.stopPropagation(); },
}
: undefined
);
Expand Down
30 changes: 15 additions & 15 deletions packages/core/src/styles/RowComp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@
&--aside-control-clickable {
&.#{$prefix-state}-disabled {
opacity: 1 !important;
}

.#{$prefix}-text__basic {
opacity: .3 !important;
}

.#{$prefix}-icon {
opacity: .3 !important;
}

.#{$prefix}-text__aside {
display: block;

a, button {
opacity: 1;
pointer-events: auto;
.#{$prefix}-text__basic {
opacity: .3 !important;
}

.#{$prefix}-icon {
opacity: .3 !important;
}

.#{$prefix}-text__aside {
display: block;

a, button {
opacity: 1;
pointer-events: auto;
}
}
}
}
Expand Down

0 comments on commit 673ad51

Please sign in to comment.