Skip to content
Snippets Groups Projects
Commit 61c5619a authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

Merge branch 'fix/accessibility-help-link' into 'dev'

fix(a11y): allow navigation on help link

See merge request !1198
parents b5ebd7c0 211c477a
Branches
Tags
2 merge requests!12413.1 Release,!1198fix(a11y): allow navigation on help link
...@@ -3,6 +3,7 @@ import QuestionMarkIcon from 'assets/icons/ico/questionMark.svg' ...@@ -3,6 +3,7 @@ import QuestionMarkIcon from 'assets/icons/ico/questionMark.svg'
import StyledIcon from 'components/CommonKit/Icon/StyledIcon' import StyledIcon from 'components/CommonKit/Icon/StyledIcon'
import { useI18n } from 'cozy-ui/transpiled/react/I18n' import { useI18n } from 'cozy-ui/transpiled/react/I18n'
import React from 'react' import React from 'react'
import { Link as RouterLink } from 'react-router-dom'
import { useAppDispatch } from 'store/hooks' import { useAppDispatch } from 'store/hooks'
import { openFeedbackModal } from 'store/modal/modal.slice' import { openFeedbackModal } from 'store/modal/modal.slice'
import './HelpLink.scss' import './HelpLink.scss'
...@@ -19,7 +20,9 @@ const HelpLink = () => { ...@@ -19,7 +20,9 @@ const HelpLink = () => {
</div> </div>
<Link <Link
className="help-card-link" className="help-card-link"
component={RouterLink}
onClick={() => dispatch(openFeedbackModal(true))} onClick={() => dispatch(openFeedbackModal(true))}
to=""
> >
<div className="card"> <div className="card">
<div className="help-card"> <div className="help-card">
......
...@@ -219,6 +219,7 @@ exports[`OptionsView component should be rendered correctly 1`] = ` ...@@ -219,6 +219,7 @@ exports[`OptionsView component should be rendered correctly 1`] = `
</div> </div>
<a <a
class="MuiTypography-root MuiLink-root MuiLink-underlineHover help-card-link MuiTypography-colorPrimary" class="MuiTypography-root MuiLink-root MuiLink-underlineHover help-card-link MuiTypography-colorPrimary"
href="/"
> >
<div <div
class="card" class="card"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment