-
Notifications
You must be signed in to change notification settings - Fork 4
Assess Viewer accessibility compliance #1980
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
base: main
Are you sure you want to change the base?
Changes from all commits
7554d57
651e304
c69ad5b
9270aa5
836bef9
104561b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ import { A, usePath } from "hookrouter"; | |
|
|
||
| import { Container, Navbar, Button, Nav, NavItem, NavLink } from "reactstrap"; | ||
| import styled from "styled-components"; | ||
| import { navConfig, trackPageEvent } from "../../constants/nav"; | ||
| import { navConfig } from "../../constants/nav"; | ||
| import { responsive } from "../../constants/responsive"; | ||
| import { colors } from "../../constants/colors"; | ||
| import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
|
|
@@ -142,8 +142,7 @@ const Header = () => { | |
| > | ||
| <Button | ||
| className={`nav-button inactive-nav-button mx-xs-0 mx-lg-2`} | ||
| onClick={() => trackPageEvent(config.eventKey)} | ||
| active={currentPath === config.url} | ||
| style={{ pointerEvents: "none" }} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this fixes "Issue: Interactive element does not meet minimum size nor spacing" This Button is nested inside of a NavLink, the NavLink is what navigates to the map (or summary, depending on what page you are on). Siteimprove says the element doesnt meet the size or spacing, and the spacing it is references is both of the elements being on top of each other. Setting the pointer events to none for the button fixes the elements being on top of each other. The onclick event is to send information to google analytics so I removed it too. I also removed the active prop because on line 136 the NavItem only renders if
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reviewing again this morning, this might not be a good fix, because removing this pointerEvent means we lose the mouse over hover effect on the button.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice, thanks for removing the useless tracker. This one is pretty annoying, because we do want to keep those pointer events. Can we remove the button and make the NavLink look like a button by borrowing its css classes? |
||
| > | ||
| {config.icon} | ||
| <span className="pl-2">{config.title}</span> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,6 +35,9 @@ const SideDrawerContent = ({ type }) => { | |
| return ( | ||
| <div className="side-menu"> | ||
| <StyledDrawerHeader> | ||
| <h1 className="sr-only"> | ||
| Vision Zero Map -- Help Austin reach zero traffic deaths | ||
| </h1> | ||
|
Comment on lines
+38
to
+40
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this isnt one of the AA requirements, but was easy to address. We have it on the summary page, just not on the map page "Page does not start with a level 1 heading" |
||
| <img | ||
| className="vz-logo" | ||
| src={LOGO_URL} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -336,10 +336,10 @@ const SideMapControl = ({ type }) => { | |
|
|
||
| return ( | ||
| <StyledCard> | ||
| <h3 className="h4 card-title"> | ||
| <h2 className="h4 card-title"> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this fixes "headings are not structured" since heading below is an h3
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for both this |
||
| Traffic Crashes{" "} | ||
| <InfoPopover config={popoverConfig.map.trafficCrashes} /> | ||
| </h3> | ||
| </h2> | ||
| <Card className="p-3 card-body"> | ||
| <Label className="section-title"> | ||
| <h3 className="h5">Filters</h3> | ||
|
|
||
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.
this is not related to the accessibility compliance, but i noticed these buttons are not fully visible on the map. This nudges them back into view
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.
Thank youuu! yeesh. any idea what was causing them to overflow?