Skip to content

Commit

Permalink
fix(liveness): add a11y tags to match indicator bar (#4802)
Browse files Browse the repository at this point in the history
* fix(liveness): add a11y tags to match indicator bar

* Create chilled-donkeys-decide.md

* remove automated screen reading for progress bar
  • Loading branch information
thaddmt authored Dec 6, 2023
1 parent f370555 commit c526cf5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/chilled-donkeys-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@aws-amplify/ui-react-liveness": patch
"@aws-amplify/ui-react": patch
"@aws-amplify/ui": patch
---

fix(liveness): add a11y tags to match indicator bar
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export const MatchIndicator: React.FC<MatchIndicatorProps> = ({
<div
className={`${LivenessClassNames.MatchIndicator}__bar`}
style={percentageStyles}
role="progressbar"
aria-label="MatchIndicator"
aria-valuenow={percentage}
aria-valuetext={`${percentage}% face fit`}
></div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/theme/css/component/liveness.scss
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
content: '';
width: 100%;
height: 100%;
background: var(--amplify-colors-primary-40);
background: var(--amplify-colors-primary-80);
left: -100%;
transform: translate(var(--percentage), 0);
transition: var(--amplify-liveness-match-indicator-transition);
Expand Down

0 comments on commit c526cf5

Please sign in to comment.