File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
packages/calcite-components/src/components/switch Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 52
52
@apply focus-base w-auto ;
53
53
}
54
54
55
+ .container {
56
+ @apply rounded-full ;
57
+ }
58
+
55
59
.track {
56
60
@apply bg-foreground- 2
57
61
border-color- 2
Original file line number Diff line number Diff line change @@ -35,3 +35,20 @@ export const darkModeRTL_TestOnly = (): string => html`
35
35
darkModeRTL_TestOnly . parameters = { modes : modesDarkDefault } ;
36
36
37
37
export const disabled_TestOnly = ( ) : string => html `< calcite-switch disabled checked > </ calcite-switch > ` ;
38
+
39
+ export const Focus_TestOnly = ( ) : string =>
40
+ html `
41
+ < div style ="width:300px;height:300px; padding: 20px ">
42
+ < calcite-switch > </ calcite-switch >
43
+ </ div >
44
+ < script >
45
+ ( async ( ) => {
46
+ await customElements . whenDefined ( "calcite-switch" ) ;
47
+ await document . querySelector ( "calcite-switch" ) . setFocus ( ) ;
48
+ } ) ( ) ;
49
+ </ script >
50
+ ` ;
51
+
52
+ Focus_TestOnly . parameters = {
53
+ chromatic : { delay : 1000 } ,
54
+ } ;
You can’t perform that action at this time.
0 commit comments