-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix(PN-13485 ) Fix a11y for filter of notification and delegation #1434
base: develop
Are you sure you want to change the base?
Conversation
@@ -9,7 +9,7 @@ export function LoadingOverlay() { | |||
const loading = useSelector(appStateSelectors.selectLoading); | |||
|
|||
return ( | |||
<Modal open={loading} sx={{ outline: 0 }} data-testid="loading-spinner"> | |||
<Modal open={loading} sx={{ outline: 0 }} data-testid="loading-spinner" disableAutoFocus disableRestoreFocus> |
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.
remove the added properties
@@ -1,4 +1,4 @@ | |||
import { Fragment } from 'react'; | |||
import { Fragment } from 'react'; |
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.
restore the old version
@@ -142,11 +142,12 @@ const DesktopNotifications = ({ | |||
}; | |||
|
|||
return ( | |||
<> | |||
<div aria-live="assertive"> |
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.
restore the old version
<FilterNotifications | ||
ref={filterNotificationsRef} | ||
showFilters={showFilters} | ||
currentDelegator={currentDelegator} | ||
lengthOfNotifications={rows.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.
remove this
@@ -207,6 +207,7 @@ const FilterNotifications = forwardRef(({ showFilters, currentDelegator }: Props | |||
cleanFilters={cleanFilters} | |||
filtersApplied={isFilterApplied(filtersCount)} | |||
isInitialSearch={isInitialSearch} | |||
lengthOfNotifications={lengthOfNotifications} |
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.
remove this
@@ -2,7 +2,7 @@ import { FormikErrors, FormikTouched, FormikValues } from 'formik'; | |||
import { ChangeEvent, Fragment } from 'react'; |
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.
restore the old version but keep the helperText for the date component
@@ -196,6 +197,7 @@ const DelegationsOfTheCompany = () => { | |||
) => ( | |||
<li {...props} key={option.id}> | |||
<Checkbox | |||
inputProps={{ 'aria-label': option.name, 'aria-live': 'assertive' }} |
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.
why do we need this?
}, | ||
marginBottom: isMobile ? '20px' : '0', | ||
}} | ||
renderOption={renderOption} | ||
renderInput={(params) => ( | ||
<TextField | ||
role="combobox" |
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.
the role, aria-autocomplete and aria-expanded should be set automatically by the mui library
@@ -2,7 +2,7 @@ import { FormikErrors, FormikTouched, FormikValues } from 'formik'; | |||
import { ChangeEvent, Fragment } from 'react'; |
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.
as for pf
@@ -405,6 +405,12 @@ const NuovaDelega = () => { | |||
label={entitySearchLabel(senderInputValue)} | |||
error={Boolean(getError(touched.enti, errors.enti))} | |||
helperText={getError(touched.enti, errors.enti)} | |||
InputProps={{ |
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.
why do we need this?
Short description
fix a11y for pf on filter notification and pg for filter of delegation
List of changes proposed in this pull request
How to test
1-insert wrong date and shown message
2-hear summary before and after select a group for filter of notification
3- hear message when click filter button and clear button on notification filter section for pf