<fieldset role="group" class="Fieldset _tight" style="" aria-label="It’s AMAZING!">
</fieldset>
<fieldset
role="group"
{{#if disabled}}disabled{{/if}}
{{#if name}}name="{{name}}"{{/if}}
class="Fieldset {{modifier}}"
style="{{style}}"
{{#if arialabel}}aria-label="{{arialabel}}"{{/if}}
>
{{> @children}}
</fieldset>
{
"modifier": "_tight",
"style": null,
"disabled": null,
"name": null,
"children": [],
"arialabel": "It’s AMAZING!"
}
import {ready, each} from '@sproutsocial/sprout-brand/modules/util';
ready(() => {
each(document.querySelectorAll('fieldset'), (fieldset, i) => {
const legend = fieldset.querySelector('legend');
if (legend) {
legend.id = `fieldsetLegend${i}`;
legend.tabindex = 1;
fieldset.setAttribute('aria-labeledby', legend.id);
}
});
});
.Fieldset {
border: none;
&._tight {
padding: 0;
margin: 1rem 0 0;
legend,
label {
&:not(.Rating) {
margin-top: .5rem;
}
}
}
}
There are no notes for this item.