fixed a11y violations (#24530)
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
parent
848e9fe004
commit
0c6ed85579
3 changed files with 8 additions and 3 deletions
|
@ -1149,6 +1149,8 @@
|
|||
"searchType.attribute": "Attribute search",
|
||||
"selectAttribute": "Select attribute",
|
||||
"selectAttributes": "Select attributes",
|
||||
"searchAttributes": "Search attributes",
|
||||
"addToFilter": "Add to filter",
|
||||
"searchUserByAttributeMissingKeyError": "Specify a attribute key",
|
||||
"searchUserByAttributeKeyAlreadyInUseError": "Attribute key already in use",
|
||||
"searchUserByAttributeMissingValueError": "Specify a attribute value",
|
||||
|
|
|
@ -186,20 +186,21 @@ export function UserDataTableAttributeSearchForm({
|
|||
return (
|
||||
<Form className="user-attribute-search-form">
|
||||
<TextContent className="user-attribute-search-form-headline">
|
||||
<Text component={TextVariants.h6}>{t("selectAttributes")}</Text>
|
||||
<Text component={TextVariants.h2}>{t("selectAttributes")}</Text>
|
||||
</TextContent>
|
||||
<Alert
|
||||
isInline
|
||||
className="user-attribute-search-form-alert"
|
||||
variant="info"
|
||||
title={t("searchUserByAttributeDescription")}
|
||||
component="h3"
|
||||
/>
|
||||
<TextContent className="user-attribute-search-form-key-value">
|
||||
<div className="user-attribute-search-form-left">
|
||||
<Text component={TextVariants.h6}>{t("key")}</Text>
|
||||
<Text component={TextVariants.h3}>{t("key")}</Text>
|
||||
</div>
|
||||
<div className="user-attribute-search-form-right">
|
||||
<Text component={TextVariants.h6}>{t("value")}</Text>
|
||||
<Text component={TextVariants.h3}>{t("value")}</Text>
|
||||
</div>
|
||||
</TextContent>
|
||||
<div className="user-attribute-search-form-left">
|
||||
|
@ -226,6 +227,7 @@ export function UserDataTableAttributeSearchForm({
|
|||
variant="control"
|
||||
icon={<CheckIcon />}
|
||||
onClick={addToFilter}
|
||||
aria-label={t("addToFilter")}
|
||||
/>
|
||||
</InputGroup>
|
||||
</div>
|
||||
|
|
|
@ -146,6 +146,7 @@ export function UserDataTableToolbarItems({
|
|||
icon={<ArrowRightIcon />}
|
||||
variant="control"
|
||||
onClick={searchUserWithAttributes}
|
||||
aria-label={t("searchAttributes")}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue