Make sure cards are clickable by screen readers (#2965)
This commit is contained in:
parent
b6b1e5212c
commit
410a320381
3 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,7 @@ export const KeycloakCard = ({
|
|||
};
|
||||
|
||||
return (
|
||||
<Card isSelectable onClick={openSettings}>
|
||||
<Card role="button" isSelectable onClick={openSettings}>
|
||||
<CardHeader>
|
||||
<CardActions>
|
||||
{dropdownItems && (
|
||||
|
|
|
@ -191,6 +191,7 @@ export default function IdentityProvidersSection() {
|
|||
{sortBy(identityProviders[group], "name").map((provider) => (
|
||||
<Card
|
||||
className="keycloak-empty-state-card"
|
||||
role="button"
|
||||
key={provider.id}
|
||||
isHoverable
|
||||
data-testid={`${provider.id}-card`}
|
||||
|
|
|
@ -197,6 +197,7 @@ export default function UserFederationSection() {
|
|||
<Card
|
||||
key={p.id}
|
||||
className="keycloak-empty-state-card"
|
||||
role="button"
|
||||
isHoverable
|
||||
onClick={() =>
|
||||
history.push(toProvider({ realm, providerId: p.id! }))
|
||||
|
|
Loading…
Reference in a new issue