No notes defined.
<input value="radio-value" type="radio" name="radio-name" class="sr-only" id="" disabled><span class="sds-radioDot -isLoading" aria-hidden="true"></span>
{%- if input -%}
<input value="{{ value }}" type="radio" name="{{ name }}" class="sr-only{% for mod in inputModifiers %} {{ mod }}{% endfor %}" id="{{ id }}"{% if disabled %} disabled{% endif %}{% if checked %} checked{% endif %}{% for attrKey, attr in attrs %} {{ attrKey }}="{{ attr }}"{% endfor %}>
{%- endif -%}
<span class="{{ namespace }}radioDot {% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}" aria-hidden="true"></span>
/* variables specific to current element */
.#{$namespace}radioDot {
/* Save root element context for easy access if nesting is needed */
$self: &;
/* properties of current element + media queries */
@include radioDotBase();
/* Pseudo Elements */
&::before {
content: "";
@include radioDotIndicator();
}
&::after {
}
/*
Include elements that are linked to the current element but have to reside at the root level of the stylesheet
(e.g: keyframes)
*/
@at-root {
}
/* children - write selector in full in comments in order to facilitate search */
// radioDot__childElement
&__childElement {
// follows same logic as parent
}
/* modifiers */
// disabled
&.-isDisabled,
INPUT[disabled] + &, INPUT:disabled + & {
@include radioInputDisabled();
}
&.-isDisabled:checked,
INPUT[disabled]:checked + &, INPUT:disabled:checked + & {
@include radioInputDisabledChecked();
}
// radioDot -active
INPUT:checked + &,
&.-active {
@include radioInputChecked();
}
&.-isLoading {
@include radioInputLoading();
INPUT[disabled]:not(:checked) + & {
@include radioInputLoadingDisabled();
}
INPUT[disabled]:checked + & {
@include radioInputLoadingDisabledChecked();
}
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
/* Pseudo Classes */
&:hover {
@media (hover: hover) {
@include radioInputHovered();
}
}
INPUT:active:not([disabled]) + &,
INPUT:focus-visible + & {
@include radioInputFocused();
}
&:active {
}
&:focus,
&:active {
}
}