Skip to content

Commit 9326b64

Browse files
committed
move aria-label to container of the progressbar
1 parent 5c872a4 commit 9326b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/fields/inputFields/fields/ProgressBar/ProgressBarComponent.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@
111111
<div
112112
class="mb-progress-bar-input"
113113
tabindex="0"
114-
bind:this={progressBarEl}
115114
role="button"
115+
aria-label={value.toString()}
116+
bind:this={progressBarEl}
116117
onkeydown={onKeyPress}
117118
onmousedown={onTrackEvent}
118119
ontouchstart={onTrackEvent}
@@ -125,7 +126,6 @@
125126
aria-valuemin={props.minValue}
126127
aria-valuemax={props.maxValue}
127128
aria-valuenow={value}
128-
aria-label={value.toString()}
129129
tabindex="0"
130130
></div>
131131
{#if props.addLabels}

0 commit comments

Comments
 (0)