-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added aria-labels #120
base: main
Are you sure you want to change the base?
Added aria-labels #120
Conversation
✅ Deploy Preview for ap-template-playground ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @isidrohan |
ad8a83d
to
8d368c6
Compare
Hello @sanketshevkar , |
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.
Looks good, just added one question.
src/components/Navbar.tsx
Outdated
const menuItemStyle = (key: string, isLast: boolean) => ({ | ||
display: "flex", | ||
alignItems: "center", | ||
padding: screens.md ? "0 20px" : "0", | ||
backgroundColor: | ||
hovered === key ? "rgba(255, 255, 255, 0.1)" : "transparent", | ||
height: "65px", | ||
borderRight: | ||
screens.md && !isLast ? "1.5px solid rgba(255, 255, 255, 0.1)" : "none", | ||
}); | ||
|
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.
is there a reason this styling was removed?
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.
ReAdded menuItemStyle
It was just happened by mistake.
Kindly review this now.
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.
Added some comments to add it back where it was used as well. Please also make sure your new commits have DCO signoff. Thank you!
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.
ReAdded menuItemStyle
kindly review this now.
src/components/Navbar.tsx
Outdated
> | ||
<div | ||
style={{ | ||
cursor: "pointer", | ||
...menuItemStyle("home", false), |
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.
Can you add it back where it is used as well?
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.
Added kindly review it.
@@ -139,22 +144,22 @@ function Navbar({ scrollToExplore }: { scrollToExplore: any }) { | |||
<> | |||
<div | |||
style={{ | |||
...menuItemStyle("explore", false), |
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.
here as well
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.
Added kindly review it.
Signed-off-by: Siddharth Rohan <[email protected]>
Signed-off-by: Siddharth Rohan <[email protected]>
Signed-off-by: Siddharth Rohan <[email protected]>
2a5d9b7
to
4ac7dcc
Compare
Closes #116
Add aria-label attributes for better accessibility
Changes
aria-label
attributes to key components for accessibilityNavbar
: Added label for navigationSampleDropdown
: Added label for dropdownUseShare
: Added label for share optionsErrors
: Addedaria-live="assertive"
to announce errorsCollapse
: Added label for collapsible panelsToggleDarkMode
: Added label for dark mode toggle buttonFullScreenModal
: Added label for fullscreen modalAgreementHtml
: Added label for agreement previewFooter
: Added label for footer contentaria-label
to mobile view message for clarityFlags
Screenshots or Video
Related Issues