File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
class:mdc-list-item--disabled ={disabled }
10
10
use:Ripple ={[ripple , {unbounded: false , color }]}
11
11
{href }
12
- aria-current ={ activated ? ' page' : undefined }
12
+ {...( activated ? { ' aria-current ' : ' page' } : {}) }
13
13
{tabindex }
14
14
on:click ={action }
15
15
on:keydown ={handleKeydown }
25
25
class:mdc-list-item--selected ={selected }
26
26
class:mdc-list-item--disabled ={disabled }
27
27
use:Ripple ={[ripple , {unbounded: false , color }]}
28
- aria-current ={ activated ? ' page' : undefined }
28
+ {...( activated ? { ' aria-current ' : ' page' } : {}) }
29
29
{tabindex }
30
30
on:click ={action }
31
31
on:keydown ={handleKeydown }
43
43
class:mdc-menu-item--selected ={role === ' menuitem' && selected }
44
44
use:Ripple ={[ripple , {unbounded: false , color }]}
45
45
{role }
46
- aria-selected ={ role === ' option' ? (selected ? ' true' : ' false' ) : undefined }
47
- aria-checked ={( role === ' radio' || role === ' checkbox' ) ? (checked ? ' true' : ' false' ) : undefined }
46
+ {...( role === ' option' ? { ' aria-selected ' : (selected ? ' true' : ' false' )} : {}) }
47
+ {...(( role === ' radio' || role === ' checkbox' ) ? { ' aria-checked ' : (checked ? ' true' : ' false' )} : {}) }
48
48
{tabindex }
49
49
on:click ={action }
50
50
on:keydown ={handleKeydown }
Original file line number Diff line number Diff line change 10
10
aria-valuemin ={min }
11
11
aria-valuemax ={max }
12
12
aria-valuenow ={value }
13
- data-step ={ step === 0 ? undefined : step }
13
+ {...( step === 0 ? {} : { ' data- step' : step }) }
14
14
{tabindex }
15
15
{...inputProps }
16
16
on:MDCSlider:change ={handleChange }
You can’t perform that action at this time.
0 commit comments