From 69171a75a74f150408485cc35a90d38b1fce79ba Mon Sep 17 00:00:00 2001 From: olav Date: Fri, 17 Jun 2022 11:27:54 +0200 Subject: [PATCH] refactor: improve button label markup (#1091) * refactor: improve button label markup * refactor: remove misused tooltip roles * refactor: simplify FeatureStrategyIcon labelling * refactor: simplify labels for disabled buttons * refactor: add missing switch input labels --- .../component/common/HelpIcon/HelpIcon.tsx | 1 - .../PermissionButton/PermissionButton.tsx | 2 +- .../PermissionIconButton.tsx | 2 +- .../cells/FeatureSeenCell/FeatureSeenCell.tsx | 1 - .../EnvironmentActionCell.tsx | 22 ++++---- .../FeatureStrategyIcon.tsx | 6 +-- .../FeatureStrategyMenu.tsx | 2 +- .../StrategyDeleteButton.tsx | 7 ++- .../StrategyEditButton/StrategyEditButton.tsx | 51 ++++++++++--------- .../StrategySwitch/StrategySwitch.tsx | 3 +- .../__snapshots__/TagTypeList.test.tsx.snap | 12 +---- 11 files changed, 53 insertions(+), 56 deletions(-) diff --git a/frontend/src/component/common/HelpIcon/HelpIcon.tsx b/frontend/src/component/common/HelpIcon/HelpIcon.tsx index a3da995f80..502be077c5 100644 --- a/frontend/src/component/common/HelpIcon/HelpIcon.tsx +++ b/frontend/src/component/common/HelpIcon/HelpIcon.tsx @@ -17,7 +17,6 @@ export const HelpIcon = ({ tooltip, style }: IHelpIconProps) => { className={styles.container} style={style} tabIndex={0} - role="tooltip" aria-label="Help" > diff --git a/frontend/src/component/common/PermissionButton/PermissionButton.tsx b/frontend/src/component/common/PermissionButton/PermissionButton.tsx index 4e2b03ddb5..0882d40a7b 100644 --- a/frontend/src/component/common/PermissionButton/PermissionButton.tsx +++ b/frontend/src/component/common/PermissionButton/PermissionButton.tsx @@ -72,7 +72,7 @@ const PermissionButton: React.FC = ({