Skip to content

Commit

Permalink
fix: 修复modal关闭按钮图标丢失问题和颜色问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaMaid committed Nov 8, 2018
1 parent 9e1d5cd commit 7ad76ac
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/DatePicker/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

&:hover {
transition: @transition-base;
color: rgba(0, 0, 0, 0.45);
color: @font-color-second;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Modal extends Component<IModalComponentProps, IModalComponentState> {
className={`${preCls}-close`}
onClick={this.onClose}
>
{closeText || <Icon type='close-round'/>}
{closeText || <Icon type='md-close'/>}
</div> : null}
<div className={`${preCls}-body`}>
{
Expand Down
2 changes: 1 addition & 1 deletion components/Modal/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
top: 0;
padding: @close-icon-padding;
cursor: pointer;
color: @color-unactive;
color: @font-color-second;
transition: @transition-quick;

:hover {
Expand Down
2 changes: 1 addition & 1 deletion components/TimePicker/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

&:hover {
transition: @transition-base;
color: rgba(0, 0, 0, 0.45);
color: @font-color-second;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions components/styles/var.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@font-size-default: 14px;
@font-size-large: 16px;
@font-color-base: rgba(0, 0, 0, 0.65);
@font-color-second: rgba(0, 0, 0, 0.45);
@font-color-unactive: rgba(0, 0, 0, 0.25);

@font-weight-base: 500;
Expand Down

0 comments on commit 7ad76ac

Please sign in to comment.