Fixed a11y violations (#26125)
* fixed a11y violations Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com> * fixed a11y violations Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com> * fixed a11y violations Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com> * fixed a11y violations Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com> --------- Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com> Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
parent
3cdc69ddbb
commit
01cd645668
7 changed files with 12 additions and 4 deletions
|
@ -2982,3 +2982,4 @@ viewDocumentation=Refer to documentation
|
||||||
viewGuides=View guides
|
viewGuides=View guides
|
||||||
joinCommunity=Join community
|
joinCommunity=Join community
|
||||||
readBlog=Read blog
|
readBlog=Read blog
|
||||||
|
customValue=Custom value
|
|
@ -84,6 +84,7 @@ export const Client = () => {
|
||||||
<Select
|
<Select
|
||||||
toggleId="clients"
|
toggleId="clients"
|
||||||
variant={SelectVariant.typeaheadMulti}
|
variant={SelectVariant.typeaheadMulti}
|
||||||
|
typeAheadAriaLabel={t("clients")}
|
||||||
onToggle={(open) => setOpen(open)}
|
onToggle={(open) => setOpen(open)}
|
||||||
isOpen={open}
|
isOpen={open}
|
||||||
selections={field.value}
|
selections={field.value}
|
||||||
|
@ -102,7 +103,6 @@ export const Client = () => {
|
||||||
}
|
}
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
}}
|
}}
|
||||||
aria-label={t("clients")}
|
|
||||||
>
|
>
|
||||||
{convert(clients)}
|
{convert(clients)}
|
||||||
</Select>
|
</Select>
|
||||||
|
|
|
@ -23,6 +23,7 @@ export function AlertPanel({ alerts, onCloseAlert }: AlertPanelProps) {
|
||||||
key={id}
|
key={id}
|
||||||
isLiveRegion
|
isLiveRegion
|
||||||
variant={AlertVariant[variant]}
|
variant={AlertVariant[variant]}
|
||||||
|
component="p"
|
||||||
variantLabel=""
|
variantLabel=""
|
||||||
title={message}
|
title={message}
|
||||||
actionClose={
|
actionClose={
|
||||||
|
|
|
@ -41,6 +41,10 @@ export const ValueSelect = ({
|
||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
) : (
|
) : (
|
||||||
<KeycloakTextInput id="customValue" data-testid={rest.name} {...field} />
|
<KeycloakTextInput
|
||||||
|
aria-label={t("customValue")}
|
||||||
|
data-testid={rest.name}
|
||||||
|
{...field}
|
||||||
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -126,7 +126,7 @@ export const AttributeGeneralSettings = () => {
|
||||||
fieldLabelId="realm-setting:attributeGroup"
|
fieldLabelId="realm-setting:attributeGroup"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
fieldId="kc-attribute-group"
|
fieldId="kc-attributeGroup"
|
||||||
>
|
>
|
||||||
<Controller
|
<Controller
|
||||||
name="group"
|
name="group"
|
||||||
|
@ -135,6 +135,7 @@ export const AttributeGeneralSettings = () => {
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<Select
|
<Select
|
||||||
toggleId="kc-attributeGroup"
|
toggleId="kc-attributeGroup"
|
||||||
|
aria-label={t("attributeGroup")}
|
||||||
onToggle={() =>
|
onToggle={() =>
|
||||||
setIsAttributeGroupDropdownOpen(!isAttributeGroupDropdownOpen)
|
setIsAttributeGroupDropdownOpen(!isAttributeGroupDropdownOpen)
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,7 +131,7 @@ export const AttributeValidations = () => {
|
||||||
</Tbody>
|
</Tbody>
|
||||||
</TableComposable>
|
</TableComposable>
|
||||||
) : (
|
) : (
|
||||||
<Text className="kc-emptyValidators" component={TextVariants.h6}>
|
<Text className="kc-emptyValidators" component={TextVariants.p}>
|
||||||
{t("emptyValidators")}
|
{t("emptyValidators")}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -295,6 +295,7 @@ export default function LdapMapperDetails() {
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<Select
|
<Select
|
||||||
toggleId="kc-providerId"
|
toggleId="kc-providerId"
|
||||||
|
typeAheadAriaLabel={t("mapperType")}
|
||||||
required
|
required
|
||||||
onToggle={() =>
|
onToggle={() =>
|
||||||
setIsMapperDropdownOpen(!isMapperDropdownOpen)
|
setIsMapperDropdownOpen(!isMapperDropdownOpen)
|
||||||
|
|
Loading…
Reference in a new issue