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

fit: enable a11y eslint rules #172

Merged
merged 3 commits into from
Feb 15, 2024
Merged

fit: enable a11y eslint rules #172

merged 3 commits into from
Feb 15, 2024

Conversation

NikitaCG
Copy link
Collaborator

@NikitaCG NikitaCG commented Feb 8, 2024

close #167

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@@ -59,6 +60,8 @@ export const Save = ({

return (
<div
Copy link
Contributor

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 ?

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

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?

@NikitaCG NikitaCG changed the title chore: enable a11y eslint rules fit: enable a11y eslint rules Feb 12, 2024
@@ -1,3 +1,4 @@
/* eslint-disable jsx-a11y/click-events-have-key-events */
Copy link
Contributor

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

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here as well

@NikitaCG NikitaCG merged commit 2b1af84 into main Feb 15, 2024
3 checks passed
@NikitaCG NikitaCG deleted the chore/update-eslint branch February 15, 2024 11:43
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.

Enable a11y eslint rule
3 participants