-
Notifications
You must be signed in to change notification settings - Fork 2
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
Austenem/Accessibility updates #3648
Changes from 10 commits
3211e0a
1c6a807
8d2a739
5021af8
42664ba
a16c43c
6fb73fc
e34858d
03e1333
5d432b1
79055de
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
- Resolve accessibility issues related to arias and interactive controls throughout the portal. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ function TooltipToggleButton({ | |
|
||
return ( | ||
<Tooltip title={tooltipTitle}> | ||
<span> | ||
<span role="tooltip"> | ||
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. I'm not sure this is the most appropriate role for the wrapper of the tooltip anchor, since the MDN example has the Maybe we could use |
||
<WhiteBackgroundToggleButton {...rest} id={id} data-testid={id}> | ||
{children} | ||
</WhiteBackgroundToggleButton> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { styled } from '@mui/material/styles'; | ||
import { Theme, styled } from '@mui/material/styles'; | ||
import { UpIcon, DownIcon } from 'js/shared-styles/icons'; | ||
|
||
const StyledUpIcon = styled(UpIcon)(({ theme }) => ({ | ||
const sharedIconStyles = ({ theme }: { theme: Theme }) => ({ | ||
marginLeft: theme.spacing(0.5), | ||
})); | ||
fontSize: '1.5rem', | ||
}); | ||
|
||
const StyledDownIcon = styled(DownIcon)(({ theme }) => ({ | ||
marginLeft: theme.spacing(0.5), | ||
})); | ||
const StyledUpIcon = styled(UpIcon)(sharedIconStyles); | ||
const StyledDownIcon = styled(DownIcon)(sharedIconStyles); | ||
|
||
export { StyledUpIcon, StyledDownIcon }; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!doctype html> | ||
<html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
|
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 creative workaround to the issue!
A minor nitpick:
top
value accordingly?Behaviorally it matches, so this should be just a minor
top
adjustment.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.
Good catch! Should be aligned now: