diff --git a/components/interactive-elements.html b/components/interactive-elements.html index 08da3aa..5263192 100644 --- a/components/interactive-elements.html +++ b/components/interactive-elements.html @@ -483,13 +483,13 @@ Label - Option 1 - Option 2 @@ -729,6 +729,7 @@ if (componentType === 'radio-field') { const radios = target.querySelectorAll('.sg-radio-field'); radios.forEach((radio) => { + radio.disabled = !isActive; if (!isActive) { radio.setAttribute('aria-checked', 'false'); } @@ -770,6 +771,15 @@ }); }); + // Sync activatable targets to the toggle's initial state on load. + document.querySelectorAll('.sg-activation-mode-toggle[data-activation-target]').forEach((toggle) => { + const target = document.getElementById(toggle.dataset.activationTarget); + if (!target) { + return; + } + setActivatableComponentState(target, toggle.dataset.active === 'relative'); + }); + document.querySelectorAll('.sg-tab-button-group').forEach((group) => { group.querySelectorAll('.sg-tab-button').forEach((button) => { button.addEventListener('click', () => { diff --git a/styleguide.css b/styleguide.css index 03770d0..2bbbd93 100644 --- a/styleguide.css +++ b/styleguide.css @@ -1988,7 +1988,8 @@ section + section { display: flex; flex-wrap: wrap; align-items: center; - gap: var(--spacing-small); + column-gap: var(--spacing-large); + row-gap: var(--spacing-small); } .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-label { @@ -1999,8 +2000,8 @@ section + section { .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-slider { min-width: 0; max-width: 100%; - width: auto; - flex: 1 1 auto; + width: 100%; + flex: 1 1 0; } .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-slider-value {