Skip to content

Commit 96a4927

Browse files
authored
fix(Search): fixed the problem of not being able to modify the icon font-size (#3238)
1 parent e127460 commit 96a4927

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/search/_example/base/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
.example-search:not(:last-child) {
77
margin-bottom: 32rpx;
8-
}
8+
}

src/search/search.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
&__clear {
6969
position: relative;
7070
margin-left: 10px;
71+
font-size: 48rpx;
7172
color: @search-clear-icon-color;
7273
.hotspot-expanded();
7374
}

src/search/search.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
aria-role="button"
4949
aria-label="清除"
5050
>
51-
<t-icon name="close-circle-filled" size="48rpx" />
51+
<t-icon name="close-circle-filled" size="inherit" color="inherit" />
5252
</view>
5353
</view>
5454
<view

0 commit comments

Comments
 (0)