From 4133a432de329149e8be1f087c58c20030f80857 Mon Sep 17 00:00:00 2001 From: agagancarczyk Date: Fri, 9 Jul 2021 14:42:45 +0100 Subject: [PATCH] Revert "Ay11" --- src/clients/ClientSettings.tsx | 12 ++++---- src/clients/add/CapabilityConfig.tsx | 30 +++++++------------ src/clients/add/GeneralSettings.tsx | 2 +- .../list-empty-state/ListEmptyState.tsx | 2 +- .../multi-line-input/MultiLineInput.tsx | 2 -- src/components/scroll-form/ScrollPanel.tsx | 2 +- src/dashboard/Dashboard.tsx | 8 ++--- 7 files changed, 20 insertions(+), 38 deletions(-) diff --git a/src/clients/ClientSettings.tsx b/src/clients/ClientSettings.tsx index d0f43e695d..7da0cb38a2 100644 --- a/src/clients/ClientSettings.tsx +++ b/src/clients/ClientSettings.tsx @@ -78,13 +78,12 @@ export const ClientSettings = ({ save, reset }: ClientSettingsProps) => { } > @@ -95,7 +94,7 @@ export const ClientSettings = ({ save, reset }: ClientSettingsProps) => { } > @@ -113,13 +112,12 @@ export const ClientSettings = ({ save, reset }: ClientSettingsProps) => { } > @@ -199,7 +197,7 @@ export const ClientSettings = ({ save, reset }: ClientSettingsProps) => { control={control} render={({ onChange, value }) => ( { control={control} render={({ onChange, value }) => ( } > @@ -60,7 +60,7 @@ export const CapabilityConfig = ({ render={({ onChange, value }) => ( } > @@ -95,7 +95,7 @@ export const CapabilityConfig = ({ render={({ onChange, value }) => ( )} @@ -161,9 +159,7 @@ export const CapabilityConfig = ({ )} @@ -187,9 +183,7 @@ export const CapabilityConfig = ({ )} @@ -219,9 +213,7 @@ export const CapabilityConfig = ({ )} @@ -240,9 +232,7 @@ export const CapabilityConfig = ({ } label={t("encryptAssertions")} @@ -270,7 +260,7 @@ export const CapabilityConfig = ({ } label={t("clientSignature")} diff --git a/src/clients/add/GeneralSettings.tsx b/src/clients/add/GeneralSettings.tsx index 913fd92d33..d2fcca0c66 100644 --- a/src/clients/add/GeneralSettings.tsx +++ b/src/clients/add/GeneralSettings.tsx @@ -30,7 +30,7 @@ export const GeneralSettings = () => { } > diff --git a/src/components/list-empty-state/ListEmptyState.tsx b/src/components/list-empty-state/ListEmptyState.tsx index d13337813f..40d60a5704 100644 --- a/src/components/list-empty-state/ListEmptyState.tsx +++ b/src/components/list-empty-state/ListEmptyState.tsx @@ -47,7 +47,7 @@ export const ListEmptyState = ({ ) : ( hasIcon && )} - + <Title headingLevel="h4" size="lg"> {message} {instructions} diff --git a/src/components/multi-line-input/MultiLineInput.tsx b/src/components/multi-line-input/MultiLineInput.tsx index bfb81d9ce8..af45798957 100644 --- a/src/components/multi-line-input/MultiLineInput.tsx +++ b/src/components/multi-line-input/MultiLineInput.tsx @@ -64,7 +64,6 @@ export const MultiLineInput = ({ variant={ButtonVariant.link} onClick={() => remove(index)} tabIndex={-1} - aria-label={t("common:remove")} isDisabled={index === fields.length - 1} > @@ -75,7 +74,6 @@ export const MultiLineInput = ({ variant={ButtonVariant.link} onClick={() => append({})} tabIndex={-1} - aria-label={t("common:add")} isDisabled={ rest.isDisabled || !(currentValues && currentValues[index]?.value) diff --git a/src/components/scroll-form/ScrollPanel.tsx b/src/components/scroll-form/ScrollPanel.tsx index 81e26f3a35..5bf141b4e6 100644 --- a/src/components/scroll-form/ScrollPanel.tsx +++ b/src/components/scroll-form/ScrollPanel.tsx @@ -14,7 +14,7 @@ export const ScrollPanel = (props: ScrollPanelProps) => { return (
{ <DescriptionListTerm> {t("enabledFeatures")}{" "} <HelpItem - forID={t(`common:helpLabel`, { - label: t("enabledFeatures"), - })} + forID="enabledFeatures" forLabel={t("enabledFeatures")} helpText="dashboard:infoEnabledFeatures" /> @@ -145,9 +143,7 @@ const Dashboard = () => { <DescriptionListTerm> {t("disabledFeatures")}{" "} <HelpItem - forID={t(`common:helpLabel`, { - label: t("disabledFeatures"), - })} + forID="disabledFeatures" forLabel={t("disabledFeatures")} helpText="dashboard:infoDisabledFeatures" />