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

CTA button keyboard behaviour should invoke :active style #2587

Closed
jrbarnes9 opened this issue Jan 26, 2023 · 1 comment · Fixed by #2879
Closed

CTA button keyboard behaviour should invoke :active style #2587

jrbarnes9 opened this issue Jan 26, 2023 · 1 comment · Fixed by #2879
Assignees
Labels
Enhancement Change of existing feature

Comments

@jrbarnes9
Copy link
Contributor

When the user selects the CTA link-button with the keyboard (Space key or Enter key), the "pressed" state styled by the :active pseudo-class (shift top, remove `box-shadow) should visible to the user, to provide visibility of the button's state via appropriate feedback.
button-press

@jrbarnes9 jrbarnes9 added the Enhancement Change of existing feature label Jan 26, 2023
@willcAND willcAND self-assigned this Jun 26, 2023
@willcAND
Copy link
Contributor

willcAND commented Jul 4, 2023

The CTA link-button is an <a> element styled like a button, so imitating the behaviour of a key press via the :active pseudo class is not achieved the same way. Requires more investigation. Context - Stack Overflow - How to trigger the :active pseudoclass on keyboard 'enter' press? (using only CSS).

@willcAND willcAND removed their assignment Jul 4, 2023
@adi-unni adi-unni self-assigned this Oct 26, 2023
@adi-unni adi-unni linked a pull request Oct 31, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Change of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants