11< section >
22 < form id ="card-settings ">
3- < pf-v5 -switch id ="flat " data-attribute ="flat "> </ pf-v5 -switch >
3+ < pf-v6 -switch id ="flat " data-attribute ="flat "> </ pf-v6 -switch >
44 < label for ="flat "> Flat</ label >
55
6- < pf-v5 -switch id ="rounded " data-attribute ="rounded "> </ pf-v5 -switch >
6+ < pf-v6 -switch id ="rounded " data-attribute ="rounded "> </ pf-v6 -switch >
77 < label for ="rounded "> Rounded</ label >
88
9- < pf-v5 -switch id ="plain " data-attribute ="plain "> </ pf-v5 -switch >
9+ < pf-v6 -switch id ="plain " data-attribute ="plain "> </ pf-v6 -switch >
1010 < label for ="plain "> Plain</ label >
1111
12- < pf-v5 -switch id ="full-height " data-attribute ="full-height "> </ pf-v5 -switch >
12+ < pf-v6 -switch id ="full-height " data-attribute ="full-height "> </ pf-v6 -switch >
1313 < label for ="full-height "> Full Height</ label >
1414
15- < pf-v5 -switch id ="size-compact " data-attribute ="size " data-value ="compact "> </ pf-v5 -switch >
15+ < pf-v6 -switch id ="size-compact " data-attribute ="size " data-value ="compact "> </ pf-v6 -switch >
1616 < label for ="size-compact "> Compact</ label >
1717
18- < pf-v5 -switch id ="size-large " data-attribute ="size " data-value ="large "> </ pf-v5 -switch >
18+ < pf-v6 -switch id ="size-large " data-attribute ="size " data-value ="large "> </ pf-v6 -switch >
1919 < label for ="size-large "> Large</ label >
2020 </ form >
2121
@@ -32,13 +32,13 @@ <h2 slot="header">Lightest card</h2>
3232< script type ="module ">
3333 import '@patternfly/elements/pf-v5-card/pf-v5-card.js' ;
3434 import '@patternfly/elements/pf-v5-button/pf-v5-button.js' ;
35- import '@patternfly/elements/pf-v5 -switch/pf-v5 -switch.js' ;
35+ import '@patternfly/elements/pf-v6 -switch/pf-v6 -switch.js' ;
3636
3737 const form = document . getElementById ( 'card-settings' ) ;
3838 const card = document . querySelector ( 'pf-v5-card' ) ;
3939
4040 form . addEventListener ( 'change' , async function ( event ) {
41- await Promise . all ( Array . from ( document . querySelectorAll ( 'pf-v5 -switch' ) , x => x . updateComplete ) ) ;
41+ await Promise . all ( Array . from ( document . querySelectorAll ( 'pf-v6 -switch' ) , x => x . updateComplete ) ) ;
4242 const { checked } = event . target ;
4343 const { attribute, value } = event . target . dataset ;
4444 switch ( attribute ) {
0 commit comments