File tree 2 files changed +3
-4
lines changed
source/_patterns/01-elements/chips
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
{{! TODO: This would need to get enhanced later on by the additional possible attributes }}
2
2
{{ #if selection }}
3
- <!-- [html-validate-disable-next input-missing-label -- label get read out on the input field already and could get aria hidden] -->
4
3
<input
5
4
class =" elm-chip"
6
5
type =" radio"
7
6
id =" chip-single-{{ variant }}{{ id-suffix }} "
8
7
name =" {{ name }} "
9
8
data-type =" selection"
10
9
{{ #if disabled }} disabled{{ /if }} >
11
- <!-- [html-validate-disable-next prefer-native-element -- TODO: Evaluate again on this HTML] -->
12
10
<label
13
11
for =" chip-single-{{ variant }}{{ id-suffix }} "
14
12
{{ #if variant }} data-variant =" {{ variant }} " {{ /if }}
15
13
{{ #if icon }} data-icon =" {{ icon }} " {{ /if }}
16
14
{{ #if iconAfter }} data-icon-after =" {{ iconAfter }} " {{ /if }}
17
15
>{{ label }} </label >
18
16
{{ else }}
19
- <!-- [html-validate-disable-next input-missing-label -- label get read out on the input field already and could get aria hidden] -->
20
17
<input
21
18
class =" elm-chip"
22
19
type =" checkbox"
23
20
id =" chip-multiple{{ #if disabled }} -disabled{{ /if }} -{{ variant }}{{ id-suffix }} "
24
21
data-type =" filter"
25
22
{{ #if disabled }} disabled{{ /if }} >
26
- <!-- [html-validate-disable-next prefer-native-element -- TODO: Evaluate again on this HTML] -->
27
23
<label
28
24
for =" chip-multiple{{ #if disabled }} -disabled{{ /if }} -{{ variant }}{{ id-suffix }} "
29
25
{{ #if variant }} data-variant =" {{ variant }} " {{ /if }}
Original file line number Diff line number Diff line change
1
+ {
2
+ "label" : " Title"
3
+ }
You can’t perform that action at this time.
0 commit comments