Skip to content

Commit

Permalink
fix: style of <SearchBar/> (#2510)
Browse files Browse the repository at this point in the history
This commit force ".am-search-synthetic-ph" and ".am-search-clear"
to use "content-box" to prevent external style such as ".am-tabs" breaking
its box-sizing.
  • Loading branch information
micooz authored and KgTong committed May 4, 2018
1 parent 0e45d4e commit 1b01ef3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/search-bar/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
}

.@{searchPrefixCls}-synthetic-ph {
box-sizing: content-box;
z-index: 1;
height: @search-bar-input-height;
line-height: @search-bar-input-height;
Expand Down Expand Up @@ -83,6 +84,7 @@
}

.@{searchPrefixCls}-clear {
box-sizing: content-box;
position: absolute;
display: none;
z-index: 3;
Expand Down

0 comments on commit 1b01ef3

Please sign in to comment.