-
Notifications
You must be signed in to change notification settings - Fork 5
Accessibility Improvements #1406
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: redesign-2024
Are you sure you want to change the base?
Conversation
@@ -1,5 +1,5 @@ | |||
import { Link } from "react-router-dom"; | |||
import React from "react"; | |||
import { Link, LinkProps } from "react-router-dom"; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 4 days ago
To fix the issue, we will remove the unused LinkProps
import from the react-router-dom
package. This will clean up the code and eliminate the unnecessary import. No other changes are required since the removal of this import does not affect the functionality of the code.
-
Copy modified line R1
@@ -1,2 +1,2 @@ | ||
import { Link, LinkProps } from "react-router-dom"; | ||
import { Link } from "react-router-dom"; | ||
import React, { HTMLAttributes } from "react"; |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## redesign-2024 #1406 +/- ##
=================================================
- Coverage 40.93% 40.91% -0.02%
=================================================
Files 493 493
Lines 21845 21855 +10
Branches 7206 7212 +6
=================================================
+ Hits 8942 8943 +1
- Misses 12291 12300 +9
Partials 612 612 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 a big improvement, especially for physics. Just a few places where the focus-visible
styling doesn't quite look right:
Physics:
- Quick questions: show/hide answer button has no tabbed styling
Ada:
- Focus on "Create new group" button (
/groups
) behaves strangely. On Firefox, I get stuck on this element and can't tab away from it. - Tabbed styling looks strange on some elements: "Published" indicator, assignment names (
/assignments
), footer links on concepts/questions within assignments - Share/delete buttons have no tabbed styling (see e.g.
/quizzes/set
) - Print/report button icons become illegible when in focus (white on a pale background - this is already the case on the live site, but it looks stranger now that the share button is styled differently).
/students
//teachers
have sections where the background colour is very similar to the buttons' focus outline colour
See related card for more; happy to discuss the reasons behind any of these changes if you are interested, but will do in a talk in a week or two.
Reworks the bulk of the
:focus
styling on the site to use one consistent mixin,@mixin focus-outline
, which uses a box shadow and an invisible outline (for compatibility with Windows' high contrast mode). Switches much of the old-style:focus
styling, which activates on any element which has any focus (including when clicked), to:focus-visible
, which activates when the browser determines that styling is necessary (usually just when tabbed to), removing the styling when it is not needed. This means the styling can be made more obvious and assistive for those who need it, without impacting those who do not. Also makes use of landmark elements on pages with more complicated layouts (e.g. those with sidebars), so that SR users can more easily move between distinct sections.