File tree Expand file tree Collapse file tree 6 files changed +53
-2
lines changed Expand file tree Collapse file tree 6 files changed +53
-2
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ function App() {
130130 - type : ` String `
131131 - description : name attribute for the input element
132132 - default : ` "" `
133+ - ** corner?**
134+ - type : ` Boolean `
135+ - description : if it is true then the search box gets border-radius
136+ - default : ` True `
133137
134138## Test
135139
Original file line number Diff line number Diff line change 1717 " UI component" ,
1818 " react component" ,
1919 " dynamic suggestions" ,
20- " custom suggestions" ,
20+ " constant suggestions" ,
2121 " react search" ,
22+ " react searchBox" ,
2223 " popup suggestions" ,
2324 " user experience" ,
2425 " interactive search" ,
Original file line number Diff line number Diff line change 8585 display : block;
8686}
8787
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+
88108.underline .rc-search-suggestions-container {
89109 border-top : none;
90110 border-left : none;
91111 border-right : none;
112+ border-radius : 0px ;
92113}
Original file line number Diff line number Diff line change 9696 }
9797 }
9898}
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+ }
99122@mixin underline {
100123 .underline {
101124 .rc-search-suggestions-container {
102125 border-top : none ;
103126 border-left : none ;
104127 border-right : none ;
128+ border-radius : 0px ;
105129 }
106130 }
107131}
Original file line number Diff line number Diff line change 22@include base .main ;
33@include base .divider ;
44@include base .panel ;
5+ @include base .corner ;
56@include base .underline ;
You can’t perform that action at this time.
0 commit comments