Skip to content
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

Draft
wants to merge 28 commits into
base: develop
Choose a base branch
from

Conversation

leleOFA
Copy link
Contributor

@leleOFA leleOFA commented Jan 9, 2025

Short description

fix a11y for pf on filter notification and pg for filter of delegation

List of changes proposed in this pull request

  • create invisibile component
  • change endAdornemt for autocomplete
  • insert check error for date filter of notification for pf

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

@SarahDonvito SarahDonvito changed the title Fix(pn 13485 )- Fix a11y for filter of notification and delegation fix/PN-13485 + fix/PN-13258- Fix a11y for filter of notification and delegation Jan 10, 2025
@SarahDonvito SarahDonvito marked this pull request as draft January 10, 2025 09:57
@leleOFA leleOFA marked this pull request as ready for review January 13, 2025 09:28
@SarahDonvito SarahDonvito marked this pull request as draft January 13, 2025 12:11
@leleOFA leleOFA changed the title fix/PN-13485 + fix/PN-13258- Fix a11y for filter of notification and delegation fix(PN-13485 ) Fix a11y for filter of notification and delegation Jan 31, 2025
@@ -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>
Copy link
Contributor

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';
Copy link
Contributor

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">
Copy link
Contributor

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}
Copy link
Contributor

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}
Copy link
Contributor

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';
Copy link
Contributor

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' }}
Copy link
Contributor

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"
Copy link
Contributor

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';
Copy link
Contributor

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={{
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants