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

fix(a11y): allow navigation on help link

parent d673f824
No related branches found
No related tags found
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'
import StyledIcon from 'components/CommonKit/Icon/StyledIcon'
import { useI18n } from 'cozy-ui/transpiled/react/I18n'
import React from 'react'
import { Link as RouterLink } from 'react-router-dom'
import { useAppDispatch } from 'store/hooks'
import { openFeedbackModal } from 'store/modal/modal.slice'
import './HelpLink.scss'
......@@ -19,7 +20,9 @@ const HelpLink = () => {
</div>
<Link
className="help-card-link"
component={RouterLink}
onClick={() => dispatch(openFeedbackModal(true))}
to=""
>
<div className="card">
<div className="help-card">
......
......@@ -219,6 +219,7 @@ exports[`OptionsView component should be rendered correctly 1`] = `
</div>
<a
class="MuiTypography-root MuiLink-root MuiLink-underlineHover help-card-link MuiTypography-colorPrimary"
href="/"
>
<div
class="card"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment