From f44774c5cb7bfe756024bca14fead1fb8c4b4c50 Mon Sep 17 00:00:00 2001 From: 7PH Date: Mon, 6 Feb 2023 17:50:16 +0100 Subject: [PATCH] SONAR-18344 Remove quality profile action dropdown from accessibility tree when hidden --- .../apps/quality-profiles/components/ProfileActions.tsx | 1 + .../__tests__/__snapshots__/ProfileActions-test.tsx.snap | 8 ++++++++ .../src/main/js/components/controls/ActionsDropdown.tsx | 2 ++ 3 files changed, 11 insertions(+) diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.tsx index 5925b1beaa5..19b4d9e71ab 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.tsx @@ -202,6 +202,7 @@ export class ProfileActions extends React.PureComponent { profile.name, profile.languageName )} + disabled={!hasAnyAction} > {actions.edit && ( -- 2.39.5