|
3 | 3 | exports[`select-field can mount "read only" Select field as checkboxes list 1`] = ` |
4 | 4 | <div id="app"> |
5 | 5 | <div class="SharpSelect SharpSelect--multiple SharpSelect--list"> |
6 | | - <span class="SharpSelect__item SharpSelect__item--inline"> |
7 | | - <div class="SharpCheck"> |
8 | | - <label class="SharpCheck__label"> |
9 | | - <input type="checkbox" disabled="disabled" class="SharpCheck__input"> |
10 | | - <span class="SharpCheck__appearance"> |
11 | | - <svg width="12" height="9" viewBox="0 0 12 9" fill-rule="evenodd" class="SharpCheck__checkmark"> |
12 | | - <path d="M4.1 6.1L1.4 3.4 0 4.9 4.1 9l7.6-7.6L10.3 0z"></path> |
13 | | - </svg> |
14 | | - </span> |
15 | | - <span class="SharpCheck__label-text">AAA</span> |
16 | | - </label> |
| 6 | + <div class="SharpSelect__group"> |
| 7 | + <div class="SharpSelect__item SharpSelect__item--inline"> |
| 8 | + <div class="SharpCheck"> |
| 9 | + <label class="SharpCheck__label"> |
| 10 | + <input type="checkbox" disabled="disabled" class="SharpCheck__input"> |
| 11 | + <span class="SharpCheck__appearance"> |
| 12 | + <svg width="12" height="9" viewBox="0 0 12 9" fill-rule="evenodd" class="SharpCheck__checkmark"> |
| 13 | + <path d="M4.1 6.1L1.4 3.4 0 4.9 4.1 9l7.6-7.6L10.3 0z"></path> |
| 14 | + </svg> |
| 15 | + </span> |
| 16 | + <span class="SharpCheck__label-text">AAA</span> |
| 17 | + </label> |
| 18 | + </div> |
17 | 19 | </div> |
18 | | - </span> |
19 | | - <span class="SharpSelect__item SharpSelect__item--inline"> |
20 | | - <div class="SharpCheck"> |
21 | | - <label class="SharpCheck__label"> |
22 | | - <input type="checkbox" disabled="disabled" class="SharpCheck__input"> |
23 | | - <span class="SharpCheck__appearance"> |
24 | | - <svg width="12" height="9" viewBox="0 0 12 9" fill-rule="evenodd" class="SharpCheck__checkmark"> |
25 | | - <path d="M4.1 6.1L1.4 3.4 0 4.9 4.1 9l7.6-7.6L10.3 0z"></path> |
26 | | - </svg> |
27 | | - </span> |
28 | | - <span class="SharpCheck__label-text">BBB</span> |
29 | | - </label> |
| 20 | + <div class="SharpSelect__item SharpSelect__item--inline"> |
| 21 | + <div class="SharpCheck"> |
| 22 | + <label class="SharpCheck__label"> |
| 23 | + <input type="checkbox" disabled="disabled" class="SharpCheck__input"> |
| 24 | + <span class="SharpCheck__appearance"> |
| 25 | + <svg width="12" height="9" viewBox="0 0 12 9" fill-rule="evenodd" class="SharpCheck__checkmark"> |
| 26 | + <path d="M4.1 6.1L1.4 3.4 0 4.9 4.1 9l7.6-7.6L10.3 0z"></path> |
| 27 | + </svg> |
| 28 | + </span> |
| 29 | + <span class="SharpCheck__label-text">BBB</span> |
| 30 | + </label> |
| 31 | + </div> |
30 | 32 | </div> |
31 | | - </span> |
| 33 | + </div> |
32 | 34 | </div> |
33 | 35 | </div> |
34 | 36 | `; |
35 | 37 |
|
36 | 38 | exports[`select-field can mount "read only" Select field as radios list 1`] = ` |
37 | 39 | <div id="app"> |
38 | 40 | <div class="SharpSelect SharpSelect--list"> |
39 | | - <div class="SharpSelect__radio-button-group"> |
40 | | - <span class="SharpSelect__item SharpSelect__item--inline"> |
| 41 | + <div class="SharpSelect__group"> |
| 42 | + <div class="SharpSelect__item SharpSelect__item--inline"> |
41 | 43 | <input type="radio" tabindex="0" id="select0" disabled="disabled" name="select" class="SharpRadio" value="3"> |
42 | 44 | <label for="select0" class="SharpRadio__label"> |
43 | 45 | <span class="SharpRadio__appearance"></span> |
44 | 46 | AAA |
45 | 47 | </label> |
46 | | - </span> |
47 | | - <span class="SharpSelect__item SharpSelect__item--inline"> |
| 48 | + </div> |
| 49 | + <div class="SharpSelect__item SharpSelect__item--inline"> |
48 | 50 | <input type="radio" tabindex="0" id="select1" disabled="disabled" name="select" class="SharpRadio" value="4"> |
49 | 51 | <label for="select1" class="SharpRadio__label"> |
50 | 52 | <span class="SharpRadio__appearance"></span> |
51 | 53 | BBB |
52 | 54 | </label> |
53 | | - </span> |
| 55 | + </div> |
54 | 56 | </div> |
55 | 57 | </div> |
56 | 58 | </div> |
@@ -104,54 +106,56 @@ exports[`select-field can mount Select field 1`] = ` |
104 | 106 | exports[`select-field can mount Select field as checkboxes list 1`] = ` |
105 | 107 | <div id="app"> |
106 | 108 | <div class="SharpSelect SharpSelect--multiple SharpSelect--list"> |
107 | | - <span class="SharpSelect__item SharpSelect__item--inline"> |
108 | | - <div class="SharpCheck"> |
109 | | - <label class="SharpCheck__label"> |
110 | | - <input type="checkbox" class="SharpCheck__input"> |
111 | | - <span class="SharpCheck__appearance"> |
112 | | - <svg width="12" height="9" viewBox="0 0 12 9" fill-rule="evenodd" class="SharpCheck__checkmark"> |
113 | | - <path d="M4.1 6.1L1.4 3.4 0 4.9 4.1 9l7.6-7.6L10.3 0z"></path> |
114 | | - </svg> |
115 | | - </span> |
116 | | - <span class="SharpCheck__label-text">AAA</span> |
117 | | - </label> |
| 109 | + <div class="SharpSelect__group"> |
| 110 | + <div class="SharpSelect__item SharpSelect__item--inline"> |
| 111 | + <div class="SharpCheck"> |
| 112 | + <label class="SharpCheck__label"> |
| 113 | + <input type="checkbox" class="SharpCheck__input"> |
| 114 | + <span class="SharpCheck__appearance"> |
| 115 | + <svg width="12" height="9" viewBox="0 0 12 9" fill-rule="evenodd" class="SharpCheck__checkmark"> |
| 116 | + <path d="M4.1 6.1L1.4 3.4 0 4.9 4.1 9l7.6-7.6L10.3 0z"></path> |
| 117 | + </svg> |
| 118 | + </span> |
| 119 | + <span class="SharpCheck__label-text">AAA</span> |
| 120 | + </label> |
| 121 | + </div> |
118 | 122 | </div> |
119 | | - </span> |
120 | | - <span class="SharpSelect__item SharpSelect__item--inline"> |
121 | | - <div class="SharpCheck"> |
122 | | - <label class="SharpCheck__label"> |
123 | | - <input type="checkbox" class="SharpCheck__input"> |
124 | | - <span class="SharpCheck__appearance"> |
125 | | - <svg width="12" height="9" viewBox="0 0 12 9" fill-rule="evenodd" class="SharpCheck__checkmark"> |
126 | | - <path d="M4.1 6.1L1.4 3.4 0 4.9 4.1 9l7.6-7.6L10.3 0z"></path> |
127 | | - </svg> |
128 | | - </span> |
129 | | - <span class="SharpCheck__label-text">BBB</span> |
130 | | - </label> |
| 123 | + <div class="SharpSelect__item SharpSelect__item--inline"> |
| 124 | + <div class="SharpCheck"> |
| 125 | + <label class="SharpCheck__label"> |
| 126 | + <input type="checkbox" class="SharpCheck__input"> |
| 127 | + <span class="SharpCheck__appearance"> |
| 128 | + <svg width="12" height="9" viewBox="0 0 12 9" fill-rule="evenodd" class="SharpCheck__checkmark"> |
| 129 | + <path d="M4.1 6.1L1.4 3.4 0 4.9 4.1 9l7.6-7.6L10.3 0z"></path> |
| 130 | + </svg> |
| 131 | + </span> |
| 132 | + <span class="SharpCheck__label-text">BBB</span> |
| 133 | + </label> |
| 134 | + </div> |
131 | 135 | </div> |
132 | | - </span> |
| 136 | + </div> |
133 | 137 | </div> |
134 | 138 | </div> |
135 | 139 | `; |
136 | 140 |
|
137 | 141 | exports[`select-field can mount Select field as radios list 1`] = ` |
138 | 142 | <div id="app"> |
139 | 143 | <div class="SharpSelect SharpSelect--list"> |
140 | | - <div class="SharpSelect__radio-button-group"> |
141 | | - <span class="SharpSelect__item SharpSelect__item--inline"> |
| 144 | + <div class="SharpSelect__group"> |
| 145 | + <div class="SharpSelect__item SharpSelect__item--inline"> |
142 | 146 | <input type="radio" tabindex="0" id="select0" name="select" class="SharpRadio" value="3"> |
143 | 147 | <label for="select0" class="SharpRadio__label"> |
144 | 148 | <span class="SharpRadio__appearance"></span> |
145 | 149 | AAA |
146 | 150 | </label> |
147 | | - </span> |
148 | | - <span class="SharpSelect__item SharpSelect__item--inline"> |
| 151 | + </div> |
| 152 | + <div class="SharpSelect__item SharpSelect__item--inline"> |
149 | 153 | <input type="radio" tabindex="0" id="select1" name="select" class="SharpRadio" value="4"> |
150 | 154 | <label for="select1" class="SharpRadio__label"> |
151 | 155 | <span class="SharpRadio__appearance"></span> |
152 | 156 | BBB |
153 | 157 | </label> |
154 | | - </span> |
| 158 | + </div> |
155 | 159 | </div> |
156 | 160 | </div> |
157 | 161 | </div> |
|
0 commit comments