fix: keep the volume readout out of the live regions

This commit is contained in:
2026-10-10 23:57:15 +03:00
parent 2f6eb9657d
commit 6ac5e6f02e
4 changed files with 7 additions and 4 deletions

View File

@@ -313,9 +313,12 @@ onBeforeUnmount(() => {
max="1"
step="0.05"
:value="audioVolume"
:aria-valuetext="`${Math.round(audioVolume * 100)}%`"
@input="changeVolume"
/>
<output for="drive-volume">{{ Math.round(audioVolume * 100) }}%</output>
<!-- A plain readout: <output> is an implicit live region and would
compete with the motion status announcer. -->
<span class="drive-popover__readout" aria-hidden="true">{{ Math.round(audioVolume * 100) }}%</span>
</div>
</template>
<button