feat(components): add labels and dual options to radio single-choice
This commit is contained in:
@@ -1673,6 +1673,40 @@ section + section {
|
||||
gap: var(--spacing-small);
|
||||
}
|
||||
|
||||
#component-radio-field .sg-checkbox-field-option {
|
||||
display: grid;
|
||||
grid-template-columns: calc(var(--interaction-height) * 6) minmax(0, 1fr);
|
||||
align-items: center;
|
||||
column-gap: var(--spacing-small);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#component-radio-field .sg-checkbox-field-option .sg-state-example__label {
|
||||
grid-column: 1;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#component-radio-field .sg-radio-field-row {
|
||||
grid-column: 2;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-small);
|
||||
min-width: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
@media (max-width: 48rem) {
|
||||
#component-radio-field .sg-checkbox-field-option {
|
||||
grid-template-columns: 1fr;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
#component-radio-field .sg-checkbox-field-option .sg-state-example__label,
|
||||
#component-radio-field .sg-radio-field-row {
|
||||
grid-column: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.sg-checkbox-field-option--disabled {
|
||||
color: var(--text-control-disabled);
|
||||
opacity: var(--disabled-opacity);
|
||||
|
||||
Reference in New Issue
Block a user