-
Notifications
You must be signed in to change notification settings - Fork 268
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
Accessibility #586
base: main
Are you sure you want to change the base?
Accessibility #586
Conversation
…pour le lecteur d'écran
To improve accessibility, certain parts of the code are modified with the help of a screen reader
src/backend/core/tests/test_api_utils_ai_document_rate_throttles.py
Outdated
Show resolved
Hide resolved
…into accessibility
For good accessibility, the pinned icon will be read by the screen reader, but the simple icon will not
@@ -85,6 +94,7 @@ export const LeftPanelTargetFilters = () => { | |||
<Icon | |||
$variation={isActive ? '1000' : '700'} | |||
iconName={query.icon} | |||
aria-hidden="true" |
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.
👍
accessibility: { | ||
'aria-hidden': true, | ||
}, | ||
}, |
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.
I don't think this part is necessary, better to change directly inside the component.
aria-label={t('Back to home page')} | ||
icon={ | ||
<Icon $variation="800" $theme="primary" iconName="house" /> | ||
<span aria-hidden="true"> | ||
<Icon $variation="800" $theme="primary" iconName="house" /> | ||
</span> | ||
} | ||
/> | ||
{auth.authenticated && ( | ||
<Button | ||
onClick={searchModal.open} | ||
size="medium" | ||
color="tertiary-text" | ||
aria-label={t('Search')} | ||
icon={ | ||
<Icon $variation="800" $theme="primary" iconName="search" /> | ||
<span aria-hidden="true"> | ||
<Icon | ||
$variation="800" | ||
$theme="primary" | ||
iconName="search" | ||
/> | ||
</span> | ||
} |
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.
Seems good ! 👍
@@ -69,7 +69,7 @@ export const Header = () => { | |||
$height="fit-content" | |||
$margin={{ top: 'auto' }} | |||
> | |||
<Image priority src={IconDocs} alt={t('Docs Logo')} width={25} /> | |||
<Image priority src={IconDocs} alt="" width={25} /> |
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 you remove the alt part ?
@@ -70,6 +69,7 @@ export const DocsGridActions = ({ | |||
iconName="more_horiz" | |||
$theme="primary" | |||
$variation="600" | |||
aria-hidden="true" |
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.
👍
@@ -54,6 +54,7 @@ export const LanguagePicker = () => { | |||
$theme="primary" | |||
$weight="bold" | |||
$variation="800" | |||
aria-hidden="true" |
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.
👍
@@ -125,7 +125,7 @@ export const Footer = () => { | |||
`} | |||
> | |||
<Text | |||
$variation="600" | |||
$variation="700" |
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.
I don't think this pull request should aim to modify the design.
@@ -1,3 +1,4 @@ | |||
//import { t } from 'i18next'; |
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.
Do we need it ?
-modifications after Sylvain's commentary -modifications after Anto's commentaries
je ne commite que les modifications annoncées dans le commit précédent
- Read the Tooltip with the number of participants, not the icon - In LeftPanel, when navigating with tab, we can see where we are
- In DocGrid, when navigating with tab, we can see where we are - In Doc, don't read "doc title input" but "rename" - In docSearch, don't read "search" icon and read "aucun document trouvé" with screen reader
…into accessibility
The elements focused with "Tab" are visible and consistent with the defined style.
The modal for document options has been modified to allow navigation using "tab" and to be closed.
Purpose
To improve accessibility, certain parts of the code will be modified.
For this, I use a screen reader for testing and validation.
Proposal
To do : https://docs.numerique.gouv.fr/docs/65993bb6-3e94-4a32-b848-9a1e019ab849/