File tree Expand file tree Collapse file tree 2 files changed +23
-18
lines changed
Expand file tree Collapse file tree 2 files changed +23
-18
lines changed Original file line number Diff line number Diff line change 1- < pf-search-input variant ="typeahead "
2- placeholder ="Search ">
1+ < div class ="container ">
2+ < h1 > Search with autocomplete</ h1 >
3+ < pf-search-input placeholder ="Search ">
34 < pf-search-input-option value ="Alabama "> Alabama </ pf-search-input-option >
45 < pf-search-input-option value ="New Jersey "> New Jersey </ pf-search-input-option >
56 < pf-search-input-option value ="New York "> New York </ pf-search-input-option >
67 < pf-search-input-option value ="New Mexico "> New Mexico </ pf-search-input-option >
78 < pf-search-input-option value ="North Carolina "> North Carolina </ pf-search-input-option >
89 </ pf-search-input >
10+ </ div >
911
1012< script type ="module ">
1113 import '@patternfly/elements/pf-search-input/pf-search-input.js' ;
1214</ script >
1315
1416< style >
15- pf-search-input {
16- /* insert demo styles */
17+ . container {
18+ padding : 40 px ;
1719}
1820</ style >
1921
Original file line number Diff line number Diff line change 258258 text-align : left;
259259 border-radius : 0 ;
260260 flex : 1 0 auto;
261- min-height : 44px ;
262- min-width : 44px ;
263261}
264262
265263# toggle-input {
266264 justify-content : space-between;
267265 padding : var (--pf-global--spacer--xs , 0.25rem ) var (--pf-global--spacer--sm , 0.5rem );
268266 padding-left : 40px ;
267+ width : 90% ;
268+ box-sizing : border-box;
269+ max-height : 36px ;
269270}
270271
271272.disabled # toggle-input {
277278 background-color : transparent;
278279 justify-content : flex-end;
279280 padding : var (--pf-global--spacer--sm , 0.5rem );
281+ max-height : 36px ;
282+ max-width : 36px ;
283+ box-sizing : border-box;
284+ display : flex;
285+ align-items : center;
286+ justify-content : center;
287+ position : relative;
288+ top : 3px ;
280289}
281290
291+
282292# toggle-button : focus : before {
283293 border-bottom-color : var (--pf-c-select__toggle--focus--before--BorderBottomColor );
284294 border-bottom-width : var (--pf-c-select__toggle--focus--before--BorderBottomWidth );
@@ -305,13 +315,6 @@ pf-badge {
305315 padding : 0 ;
306316}
307317
308- # toggle svg {
309- width : 1em ;
310- height : 1em ;
311- flex : 0 0 auto;
312- margin-inline-start : 1em ;
313- }
314-
315318# description {
316319 display : block;
317320}
@@ -381,9 +384,9 @@ pf-badge {
381384
382385div .search-icon {
383386 position : absolute;
384- top : 50% ;
385- left : 0 ;
386- transform : translateY (-50% );
387- display : flex;
388- align-items : center;
387+ top : 50% ;
388+ left : 1 rem ;
389+ transform : translateY (-50% );
390+ display : flex;
391+ align-items : center;
389392}
You can’t perform that action at this time.
0 commit comments