Skip to content

Commit

Permalink
fix(InputButton): fix icon-prefix-cls of InputButton (#1675)
Browse files Browse the repository at this point in the history
* fix(InputButton): fix icon-prefix-cls of InputButton

* fix(table): fix sorter-icon style of Table

Co-authored-by: maxin <maxin@growingio.com>
  • Loading branch information
nnmax and maxin committed Dec 14, 2021
1 parent 91b7311 commit 980f51b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions src/input/style/InputButton.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
@import (reference) '../../input/style/index.less';

@input-btn-prefix-cls: ~'@{component-prefix}-input-btn';
@icon-prefix-cls: ~'@{component-prefix}-input__prefix';

@input-btn-input-prefix-cls: ~'@{component-prefix}-input-btn';

.@{input-prefix-cls}.@{input-btn-input-prefix-cls} {
.@{input-prefix-cls}.@{input-btn-prefix-cls} {
input {
overflow: hidden;
white-space: nowrap;
Expand All @@ -26,7 +23,7 @@
background-color: @gray-1;
border: 1px solid @gray-2;

.@{icon-prefix-cls} {
.@{input-prefix-cls}__prefix {
svg {
color: @blue-3;
// cursor: not-allowed;
Expand Down Expand Up @@ -58,7 +55,7 @@
}

&:hover {
.@{input-btn-input-prefix-cls} {
.@{input-btn-prefix-cls} {
color: @gray-3;
background-color: @gray-0;
cursor: not-allowed;
Expand All @@ -79,7 +76,7 @@
}
}

.@{input-btn-input-prefix-cls} {
.@{input-btn-prefix-cls} {
background-color: @gray-0;
}
.@{input-prefix-cls} {
Expand Down
4 changes: 2 additions & 2 deletions src/table/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@
}
&-up {
line-height: 0;
transform: translateY(2px);
transform: translateY(3px);
}
&-down {
line-height: 0;
transform: translateY(-2px);
transform: translateY(-3px);
}
&-up.active,
&-down.active {
Expand Down

1 comment on commit 980f51b

@vercel
Copy link

@vercel vercel bot commented on 980f51b Dec 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.