No notes defined.
<!-- Text -->
<p class="sds-hint sds-textHelperSmall">
{Hint}
</p>
<!-- Error -->
<p class="sds-hint sds-textHelperSmall -hintError">
<span class="sds-hint__icon sds-icon sds-icon-alert" aria-hidden="true"></span>
{Hint}
</p>
<!-- Link -->
<p class="sds-hint sds-textHelperSmall -hintMoreInfo">
<span class="sds-hint__icon sds-icon sds-icon-infocirclefill" aria-hidden="true"></span>
<button type="button" class="sds-textBold" data-toggle="modal" data-target="#">{Hint}</button>
</p>
<p class="{{ namespace }}hint {{ namespace }}textHelperSmall{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
{% if error %}
<span class="{{ namespace }}hint__icon {{ namespace }}icon {{ namespace }}icon-alert" aria-hidden="true"></span>
{% endif %}
{% if moreInfo %}
<span class="{{ namespace }}hint__icon {{ namespace }}icon {{ namespace }}icon-infocirclefill" aria-hidden="true"></span>
<button type="button" class="{{ namespace }}textBold" data-toggle="modal" data-target="#{{ hintModal }}">{{ text }}</button>
{% else %}
{{ text }}
{% endif %}
</p>
/* variables specific to current element */
$element-specific-variables: "";
.#{$namespace}hint {
/* Save root element context for easy access if nesting is needed */
$self: &;
/* properties of current element + media queries */
display: inline-flex;
@include custom-prop-fallback("color","comp-hint-text-text-color");
gap: map-deep-get($design-tokens, "comp-input-hint-inline");
/* Pseudo Elements */
&::before {
}
&::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 */
// hint__icon
&__icon {
// follows same logic as parent
&::before {
font-size: map-deep-get($design-tokens, "comp-hint-icon-size");
}
}
/* modifiers */
// hint -hintError
&.-hintError {
// follows same logic as base element
@include custom-prop-fallback("color","comp-hint-error-text-color");
}
&.-hintMoreInfo {
// follows same logic as base element
@include custom-prop-fallback("color","comp-hint-link-text-color");
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
/* Pseudo Classes */
&:hover {
@media (hover: hover) {
}
}
&:focus {
}
&:active {
}
&:focus,
&:active {
}
}