fix: keep the volume readout out of the live regions
This commit is contained in:
@@ -313,9 +313,12 @@ onBeforeUnmount(() => {
|
|||||||
max="1"
|
max="1"
|
||||||
step="0.05"
|
step="0.05"
|
||||||
:value="audioVolume"
|
:value="audioVolume"
|
||||||
|
:aria-valuetext="`${Math.round(audioVolume * 100)}%`"
|
||||||
@input="changeVolume"
|
@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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -367,7 +367,7 @@
|
|||||||
background: #271633;
|
background: #271633;
|
||||||
}
|
}
|
||||||
.drive-popover strong,
|
.drive-popover strong,
|
||||||
.drive-popover output {
|
.drive-popover__readout {
|
||||||
color: var(--rose);
|
color: var(--rose);
|
||||||
}
|
}
|
||||||
.drive-popover select {
|
.drive-popover select {
|
||||||
|
|||||||
@@ -609,7 +609,7 @@ html .drive-popover {
|
|||||||
}
|
}
|
||||||
html .drive-popover strong { color: var(--focus); border-color: rgb(217 200 244 / 16%); }
|
html .drive-popover strong { color: var(--focus); border-color: rgb(217 200 244 / 16%); }
|
||||||
html .drive-popover input[type='range'] { accent-color: var(--focus); }
|
html .drive-popover input[type='range'] { accent-color: var(--focus); }
|
||||||
html .drive-popover output { color: var(--focus); }
|
html .drive-popover__readout { color: var(--focus); }
|
||||||
html .drive-popover select { border-color: rgb(217 200 244 / 26%); background: #10091e; }
|
html .drive-popover select { border-color: rgb(217 200 244 / 26%); background: #10091e; }
|
||||||
.drive-popover__volume {
|
.drive-popover__volume {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|||||||
@@ -398,7 +398,7 @@
|
|||||||
padding-inline: 0.65rem;
|
padding-inline: 0.65rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.drive-popover output {
|
.drive-popover__readout {
|
||||||
color: var(--cyan);
|
color: var(--cyan);
|
||||||
font-size: 0.68rem;
|
font-size: 0.68rem;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user