fixed a11y violations (#17550)

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
agagancarczyk 2023-03-10 09:55:39 +00:00 committed by GitHub
parent 429e45b94c
commit 598076368c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View file

@ -33,6 +33,7 @@ export const ChangeTypeDropdown = ({
return (
<Select
toggleId="change-type-dropdown"
aria-label="change-type-to"
isOpen={open}
selections={[]}
isDisabled={selectedRows.length === 0}

View file

@ -412,7 +412,12 @@ export default function ClientDetails() {
/>
<PageSection variant="light" className="pf-u-p-0">
<FormProvider {...form}>
<RoutableTabs data-testid="client-tabs" isBox mountOnEnter>
<RoutableTabs
data-testid="client-tabs"
aria-label="client-tabs"
isBox
mountOnEnter
>
<Tab
id="settings"
data-testid="clientSettingsTab"

View file

@ -333,6 +333,7 @@ export const AuthorizationEvaluate = ({ client }: Props) => {
>
<KeycloakTextInput
id="alias"
aria-label="resource-type"
data-testid="alias"
{...register("alias", { required: true })}
/>
@ -370,7 +371,7 @@ export const AuthorizationEvaluate = ({ client }: Props) => {
}}
selections={field.value}
variant={SelectVariant.typeaheadMulti}
aria-label={t("authScopes")}
typeAheadAriaLabel={t("authScopes")}
isOpen={scopesDropdownOpen}
>
{scopes.map((scope) => (

View file

@ -37,7 +37,7 @@ export const GeneratedCodeTab = ({
</CodeBlock>
) : (
<EmptyState variant="large" id={label}>
<Title headingLevel="h4" size="lg">
<Title headingLevel="h2" size="lg">
{t(`${label}No`)}
</Title>
<EmptyStateBody>{t(`${label}IsDisabled`)}</EmptyStateBody>