Fixed a11y violations for clients (#21310)

* fixed a11y violations for clients

* feedback

---------

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
agagancarczyk 2023-07-11 13:04:32 +01:00 committed by GitHub
parent 7d348b9053
commit 01e861a711
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View file

@ -272,7 +272,7 @@ export default function PermissionDetails() {
{applyToResourceTypeFlag ? (
<FormGroup
label={t("resourceType")}
fieldId="name"
fieldId="resourceType"
labelIcon={
<HelpItem
helpText={t("clients-help:resourceType")}

View file

@ -266,12 +266,12 @@ export const AuthorizationPermissions = ({ clientId }: PermissionsProps) => {
<TableComposable aria-label={t("resources")} variant="compact">
<Thead>
<Tr>
<Th />
<Th aria-hidden="true" />
<Th>{t("common:name")}</Th>
<Th>{t("common:type")}</Th>
<Th>{t("associatedPolicy")}</Th>
<Th>{t("common:description")}</Th>
<Th />
<Th aria-hidden="true" />
</Tr>
</Thead>
{permissions.map((permission, rowIndex) => (

View file

@ -185,14 +185,14 @@ export const AuthorizationResources = ({ clientId }: ResourcesProps) => {
<TableComposable aria-label={t("resources")} variant="compact">
<Thead>
<Tr>
<Th />
<Th aria-hidden="true" />
<Th>{t("common:name")}</Th>
<Th>{t("displayName")}</Th>
<Th>{t("common:type")}</Th>
<Th>{t("owner")}</Th>
<Th>{t("uris")}</Th>
<Th />
<Th />
<Th aria-hidden="true" />
<Th aria-hidden="true" />
</Tr>
</Thead>
{resources.map((resource, rowIndex) => (

View file

@ -183,11 +183,11 @@ export const AuthorizationScopes = ({ clientId }: ScopesProps) => {
<TableComposable aria-label={t("scopes")} variant="compact">
<Thead>
<Tr>
<Th />
<Th aria-hidden="true" />
<Th>{t("common:name")}</Th>
<Th>{t("displayName")}</Th>
<Th />
<Th />
<Th aria-hidden="true" />
<Th aria-hidden="true" />
</Tr>
</Thead>
{scopes.map((scope, rowIndex) => (