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 component invokes :active with keyboard #2879

Merged
merged 4 commits into from
Nov 6, 2023

Conversation

adi-unni
Copy link
Contributor

@adi-unni adi-unni commented Oct 31, 2023

What is the context of this PR?

Changed styles and added javascript to the button so that link button which is a a ref styled as a button now has the same behaviours as the "button" buttons. When pressing the link-button in the CTA and otherwise, it now depresses and comes back.

How to review this PR

Navigate to Call to Action button and click on the button with mouse and by using by using keyboard space or enter. Visual functionality should be the same between using a mouse and using a keyboard.

Checklist

  • I have selected the correct Assignee
  • I have linked the correct Issue

@adi-unni adi-unni added the Bug Something isn't working label Oct 31, 2023
@adi-unni adi-unni self-assigned this Oct 31, 2023
Copy link

netlify bot commented Oct 31, 2023

Deploy Preview for ons-design-system-preview ready!

Name Link
🔨 Latest commit 3a34280
🔍 Latest deploy log https://app.netlify.com/sites/ons-design-system-preview/deploys/65413aac6be0e20008d3fec0
😎 Deploy Preview https://deploy-preview-2879--ons-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@adi-unni adi-unni linked an issue Oct 31, 2023 that may be closed by this pull request
@adi-unni adi-unni marked this pull request as ready for review October 31, 2023 17:35
@adi-unni adi-unni changed the title Fix/2578/cta button invoke active with keyboard CTA button component invokes :active with keyboard Nov 1, 2023
@adi-unni adi-unni closed this Nov 2, 2023
@adi-unni adi-unni reopened this Nov 2, 2023
@adi-unni adi-unni merged commit 3dc8a86 into main Nov 6, 2023
13 of 14 checks passed
@adi-unni adi-unni deleted the fix/2578/cta-button-invoke-active-with-keyboard branch November 6, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CTA button keyboard behaviour should invoke :active style
3 participants