Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
k-egor-smirnov committed Oct 7, 2022
1 parent a618bde commit 44a5707
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Group/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const GroupComponent = ({
(!restProps["aria-controls"] || !restProps["id"])
) {
warn(
'При использовани роли "tabpanel" необходимо задать значение пропов "aria-controls" и "id"'
'При использовании роли "tabpanel" необходимо задать значение свойств "aria-controls" и "id"'
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const TabsComponent = ({
}

return Array.from(
// eslint-disable-next-line
// eslint-disable-next-line no-restricted-properties
tabsRef.current.querySelectorAll<HTMLDivElement>(
"[role=tab]:not([disabled])"
)
Expand Down
3 changes: 1 addition & 2 deletions src/components/TabsItem/TabsItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ export const TabsItem = ({
}
}

let tabIndex: React.HTMLAttributes<HTMLElement>["tabIndex"] =
restProps.tabIndex;
let tabIndex = restProps.tabIndex;
if (isTabFlow && tabIndex === undefined) {
tabIndex = selected ? 0 : -1;
}
Expand Down

0 comments on commit 44a5707

Please sign in to comment.