Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DESIGN] Card hover and link states #503

Open
fionamorrison23 opened this issue Mar 4, 2025 · 0 comments
Open

[DESIGN] Card hover and link states #503

fionamorrison23 opened this issue Mar 4, 2025 · 0 comments
Assignees
Labels
Type: Feature Issue is a new feature request

Comments

@fionamorrison23
Copy link
Collaborator

User story

As an anonymous user with impaired vision
I want a clear visual indication that a card is linked, i.e. clear and obvious hover state
So that I can easily identify linked cards on the site

As an anonymous user
When I hover on a card
I want the entire card to be linked
So that I don't need to move around on the card to find the link

Description

Hover state
The hover state on OOTB cards in CivicTheme is not accessible. The current hover state:

  • Very light shadow appears under the card (not visually accessible)
  • Title colour changes (in the CivicTheme brand colours the contrast between the two colours doesn't pass WCAG)

Card link.
Only the title and the chevron/arrow (when one is present) is clickable, even though the entire card has a hover state. This is confusing as the user thinks they can click anywhere on the card because the hover state is enacted.
Consider making the entire card clickable.

Acceptance criteria

AC 1 - hover
Given I am an anonymous user
When I hover on a card
Then there is a clear visual indication the card is in the hover state
And it complies with WCAG 2.2

AC 2 - link
Given I am an anonymous user
When I click on a card that has a link
Then the entire card is linked

@fionamorrison23 fionamorrison23 added the Type: Feature Issue is a new feature request label Mar 4, 2025
@github-project-automation github-project-automation bot moved this to Todo in UI Kit Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Issue is a new feature request
Projects
Status: Todo
Development

No branches or pull requests

2 participants