-
Notifications
You must be signed in to change notification settings - Fork 72
[terra-navigation-side-menu] Accessibility Changes #2018
Conversation
@@ -107,7 +107,7 @@ | |||
} | |||
|
|||
.chevron { | |||
color: var(--terra-navigation-side-menu-item-selected-chevron-color, #909496); | |||
color: var(--terra-navigation-side-menu-item-selected-chevron-color, #1C1F21); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this color provided by the design team?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
color contrast change reverted. Thanks
f257333
/* stylelint-disable-next-line max-nesting-depth */ | ||
.chevron { | ||
color: var(--terra-navigation-side-menu-item-selected-focus-chevron-color, #909496); | ||
color: var(--terra-navigation-side-menu-item-selected-hover-chevron-color, #1C1F21); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this color provided by the design team?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
color contrast change reverted. Thanks
f257333
Please add a wdio test to verify the up and down arrow key navigation and also update the test files with the new ariaLabel prop. |
@@ -36,16 +36,19 @@ | |||
--terra-navigation-side-menu-item-selected-before-background-image: none; | |||
--terra-navigation-side-menu-item-selected-background-size: auto; | |||
--terra-navigation-side-menu-item-selected-border-left: 0.5rem solid #007cc3; | |||
--terra-navigation-side-menu-item-selected-chevron-color: #909496; | |||
--terra-navigation-side-menu-item-selected-chevron-color: #1C1F21; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you forgot to revert this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah. this variable is not used any more. Removed . Thanks
3017b29
--terra-navigation-side-menu-item-selected-color: #1c1f21; | ||
--terra-navigation-side-menu-item-selected-focus-background-color: #f4f4f4; | ||
--terra-navigation-side-menu-item-selected-focus-chevron-color: #909496; | ||
--terra-navigation-side-menu-item-selected-focus-chevron-color: #1C1F21; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you forgot to revert this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah. this variable is not used any more. Removed . Thanks
3017b29
This reverts commit 3017b29.
Co-authored-by: Sugan G <[email protected]>
// To add focus to the first sub menu item | ||
if (node && this.needsFocus) { | ||
const subMenuNodes = node.querySelectorAll('[data-menu-item]'); | ||
if (subMenuNodes) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (subMenuNodes) { | |
if (subMenuNodes && subMenuNodes.length) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks
5382cb3
With VO, unable to navigate items with arrow keys, tab works. |
+1 for the current a11y changes. |
Summary
What was changed:
Audit Report Issues:
Why it was changed:
This component does not commit accessibility criteria.
VO.mov
Testing
This change was tested using:
Reviews
In addition to engineering reviews, this PR needs:
Additional Details
This PR resolves:
UXPLATFORM-10196
Thank you for contributing to Terra.
@cerner/terra