|
21 | 21 | cursor: unset; |
22 | 22 | } |
23 | 23 |
|
24 | | - .tedi-choice-group-item__input { |
25 | | - @include mixins.visually-hidden; |
26 | | - } |
27 | | - |
28 | 24 | &__label { |
29 | 25 | box-sizing: border-box; |
30 | 26 | display: block; |
|
51 | 47 | } |
52 | 48 | } |
53 | 49 |
|
54 | | - &:has(:focus-visible) { |
| 50 | + &:focus-visible { |
55 | 51 | z-index: 5; |
56 | 52 | outline: 2px solid var(--form-checkbox-radio-default-border-selected); |
57 | 53 | outline-offset: 2px; |
|
63 | 59 | background-color: var(--form-checkbox-radio-card-primary-default-background); |
64 | 60 | border: 1px solid var(--form-checkbox-radio-card-primary-default-border-group); |
65 | 61 |
|
66 | | - &.tedi-choice-group-item--checkbox { |
67 | | - border-color: var(--filter-primary-inactive-background); |
68 | | - } |
69 | | - |
70 | 62 | &.tedi-choice-group-item--checked { |
71 | 63 | background-color: var(--form-checkbox-radio-card-primary-selected-background); |
72 | 64 | border-color: var(--form-checkbox-radio-card-primary-hover-border); |
|
142 | 134 | } |
143 | 135 | } |
144 | 136 |
|
145 | | - &:has(:focus-visible) { |
146 | | - z-index: 5; |
147 | | - outline: 2px solid var(--form-checkbox-radio-default-border-selected); |
148 | | - outline-offset: 2px; |
149 | | - } |
150 | | - |
151 | 137 | &.tedi-choice-group-item--disabled { |
152 | 138 | color: var(--form-checkbox-radio-card-primary-disabled-default-text); |
153 | 139 | background-color: var(--form-checkbox-radio-card-secondary-disabled-default-background); |
|
164 | 150 | margin-top: -1px; |
165 | 151 | } |
166 | 152 |
|
| 153 | + &:first-of-type .tedi-choice-group-item { |
| 154 | + border-top-left-radius: var(--border-radius-default); |
| 155 | + border-top-right-radius: var(--border-radius-default); |
| 156 | + } |
| 157 | + |
| 158 | + &:last-of-type .tedi-choice-group-item { |
| 159 | + border-bottom-right-radius: var(--border-radius-default); |
| 160 | + border-bottom-left-radius: var(--border-radius-default); |
| 161 | + } |
| 162 | + |
167 | 163 | &:not(:first-of-type) .tedi-choice-group-item--disabled { |
168 | 164 | margin-top: 1px; |
169 | 165 | border-top-color: var(--form-checkbox-radio-card-secondary-disabled-default-border); |
170 | 166 | } |
| 167 | + } |
| 168 | + |
| 169 | + &.tedi-choice-group-item--column-reverse { |
| 170 | + &:not(:first-of-type, :disabled) { |
| 171 | + margin-bottom: -1px; |
| 172 | + } |
| 173 | + |
| 174 | + &:last-of-type:disabled { |
| 175 | + margin-bottom: 0; |
| 176 | + } |
171 | 177 |
|
172 | 178 | &:first-of-type .tedi-choice-group-item { |
| 179 | + border-bottom-right-radius: var(--border-radius-default); |
| 180 | + border-bottom-left-radius: var(--border-radius-default); |
| 181 | + } |
| 182 | + |
| 183 | + &:last-of-type .tedi-choice-group-item { |
173 | 184 | border-top-left-radius: var(--border-radius-default); |
174 | 185 | border-top-right-radius: var(--border-radius-default); |
175 | 186 | } |
176 | 187 |
|
177 | | - &:last-of-type .tedi-choice-group-item { |
178 | | - border-bottom-right-radius: var(--border-radius-default); |
179 | | - border-bottom-left-radius: var(--border-radius-default); |
| 188 | + &:not(:first-of-type) .tedi-choice-group-item--disabled { |
| 189 | + margin-bottom: 1px; |
| 190 | + border-bottom-color: var(--form-checkbox-radio-card-secondary-disabled-default-border); |
180 | 191 | } |
181 | 192 | } |
182 | 193 |
|
|
213 | 224 | } |
214 | 225 | } |
215 | 226 |
|
| 227 | + &.tedi-choice-group-item--row-reverse { |
| 228 | + &:not(:first-of-type) .tedi-choice-group-item { |
| 229 | + margin-right: -1px; |
| 230 | + } |
| 231 | + |
| 232 | + &:not(:first-of-type) .tedi-choice-group-item--disabled { |
| 233 | + margin-right: 0; |
| 234 | + |
| 235 | + &.tedi-choice-group-item--card-primary { |
| 236 | + border-right-color: var(--form-checkbox-radio-card-secondary-disabled-default-border); |
| 237 | + } |
| 238 | + |
| 239 | + &.tedi-choice-group-item--card-secondary { |
| 240 | + border-right-color: var(--form-checkbox-radio-card-secondary-default-background); |
| 241 | + } |
| 242 | + } |
| 243 | + |
| 244 | + &:first-of-type .tedi-choice-group-item { |
| 245 | + border-top-right-radius: var(--border-radius-default); |
| 246 | + border-bottom-right-radius: var(--border-radius-default); |
| 247 | + } |
| 248 | + |
| 249 | + &:last-of-type .tedi-choice-group-item { |
| 250 | + border-top-left-radius: var(--border-radius-default); |
| 251 | + border-bottom-left-radius: var(--border-radius-default); |
| 252 | + } |
| 253 | + |
| 254 | + .tedi-choice-group-item--disabled.tedi-choice-group-item--card-secondary { |
| 255 | + color: var(--form-checkbox-radio-card-primary-disabled-default-text); |
| 256 | + background-color: var(--form-checkbox-radio-card-secondary-disabled-default-background); |
| 257 | + } |
| 258 | + } |
| 259 | + |
216 | 260 | .tedi-choice-group-item--card-primary:not(.tedi-choice-group-item--disabled):hover { |
217 | 261 | background-color: var(--form-checkbox-radio-card-primary-hover-background); |
218 | 262 | border-color: var(--form-checkbox-radio-card-primary-hover-border); |
|
0 commit comments