Skip to content

Commit 2f23698

Browse files
maryscarshockey
authored andcommitted
improve(a11y): visibility accessibility via aria-label (#4127)
* Added aria-label for visual readers. * Increased font weight for Models section span to meet contrast ratio visibility requirements.
1 parent 4599033 commit 2f23698

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/core/components/auth/authorize-operation-btn.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ export default class AuthorizeOperationBtn extends React.Component {
2020
let { isAuthorized } = this.props
2121

2222
return (
23-
<button className={isAuthorized ? "authorization__btn locked" : "authorization__btn unlocked"} onClick={ this.onClick }>
23+
<button className={isAuthorized ? "authorization__btn locked" : "authorization__btn unlocked"}
24+
aria-label={isAuthorized ? "authorization button locked" : "authorization button unlocked"}
25+
onClick={this.onClick}>
2426
<svg width="20" height="20">
2527
<use href={ isAuthorized ? "#locked" : "#unlocked" } xlinkHref={ isAuthorized ? "#locked" : "#unlocked" } />
2628
</svg>

src/style/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ $section-models-border-color: $gray-custom-2 !default;
175175

176176
$section-models-isopen-h4-border-bottom-color: $section-models-border-color !default;
177177

178-
$section-models-h4-font-color: $gray-500 !default;
178+
$section-models-h4-font-color: $gray-600 !default;
179179
$section-models-h4-background-color-hover: $gray-base !default;
180180

181181
$section-models-h5-font-color: $gray-500 !default;

0 commit comments

Comments
 (0)