-
Notifications
You must be signed in to change notification settings - Fork 2
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
fit: enable a11y eslint rules #172
Conversation
Preview is ready. |
@@ -59,6 +60,8 @@ export const Save = ({ | |||
|
|||
return ( | |||
<div |
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.
if this div has a button role, can it be a tag ?
src/components/Search/Search.tsx
Outdated
@@ -78,7 +78,8 @@ export const Search = ({ | |||
}; | |||
|
|||
return ( | |||
<div className={b('input-icon')} onClick={handleClick}> | |||
// eslint-disable-next-line jsx-a11y/click-events-have-key-events | |||
<div role="button" tabIndex={0} className={b('input-icon')} onClick={handleClick}> |
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.
also here, can we use tag instead of div?
@@ -1,3 +1,4 @@ | |||
/* eslint-disable jsx-a11y/click-events-have-key-events */ |
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.
This comment is not necessary, as you using onclick for button tag, bot for div
src/components/Search/Search.tsx
Outdated
@@ -78,9 +78,10 @@ export const Search = ({ | |||
}; | |||
|
|||
return ( | |||
<div className={b('input-icon')} onClick={handleClick}> | |||
// eslint-disable-next-line jsx-a11y/click-events-have-key-events |
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.
Here as well
close #167