File tree 6 files changed +53
-2
lines changed
6 files changed +53
-2
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ function App() {
130
130
- type : ` String `
131
131
- description : name attribute for the input element
132
132
- default : ` "" `
133
+ - ** corner?**
134
+ - type : ` Boolean `
135
+ - description : if it is true then the search box gets border-radius
136
+ - default : ` True `
133
137
134
138
## Test
135
139
Original file line number Diff line number Diff line change 17
17
" UI component" ,
18
18
" react component" ,
19
19
" dynamic suggestions" ,
20
- " custom suggestions" ,
20
+ " constant suggestions" ,
21
21
" react search" ,
22
+ " react searchBox" ,
22
23
" popup suggestions" ,
23
24
" user experience" ,
24
25
" interactive search" ,
Original file line number Diff line number Diff line change 85
85
display : block;
86
86
}
87
87
88
+ .corner .rc-search-suggestions-container {
89
+ border-radius : 5px ;
90
+ }
91
+ .corner [data-popper-placement |= bottom ] {
92
+ border-bottom-left-radius : 5px ;
93
+ border-bottom-right-radius : 5px ;
94
+ }
95
+ .corner [data-popper-placement |= bottom ] + .rc-search-suggestions-container {
96
+ border-bottom-left-radius : 0px ;
97
+ border-bottom-right-radius : 0px ;
98
+ }
99
+ .corner [data-popper-placement |= top ] {
100
+ border-top-left-radius : 5px ;
101
+ border-top-right-radius : 5px ;
102
+ }
103
+ .corner [data-popper-placement |= top ] + .rc-search-suggestions-container {
104
+ border-top-left-radius : 0px ;
105
+ border-top-right-radius : 0px ;
106
+ }
107
+
88
108
.underline .rc-search-suggestions-container {
89
109
border-top : none;
90
110
border-left : none;
91
111
border-right : none;
112
+ border-radius : 0px ;
92
113
}
Original file line number Diff line number Diff line change 96
96
}
97
97
}
98
98
}
99
+ @mixin corner {
100
+ .corner {
101
+ .rc-search-suggestions-container {
102
+ border-radius : 5px ;
103
+ }
104
+ [data-popper-placement |= ' bottom' ] {
105
+ border-bottom-left-radius : 5px ;
106
+ border-bottom-right-radius : 5px ;
107
+ & + .rc-search-suggestions-container {
108
+ border-bottom-left-radius : 0px ;
109
+ border-bottom-right-radius : 0px ;
110
+ }
111
+ }
112
+ [data-popper-placement |= ' top' ] {
113
+ border-top-left-radius : 5px ;
114
+ border-top-right-radius : 5px ;
115
+ & + .rc-search-suggestions-container {
116
+ border-top-left-radius : 0px ;
117
+ border-top-right-radius : 0px ;
118
+ }
119
+ }
120
+ }
121
+ }
99
122
@mixin underline {
100
123
.underline {
101
124
.rc-search-suggestions-container {
102
125
border-top : none ;
103
126
border-left : none ;
104
127
border-right : none ;
128
+ border-radius : 0px ;
105
129
}
106
130
}
107
131
}
Original file line number Diff line number Diff line change 2
2
@include base .main ;
3
3
@include base .divider ;
4
4
@include base .panel ;
5
+ @include base .corner ;
5
6
@include base .underline ;
You can’t perform that action at this time.
0 commit comments