Skip to content

Improve QR generator UX - #1

Open
fwextensions wants to merge 1 commit into
SFDigitalServices:mainfrom
fwextensions:jdunning/feat/http-filter-auto-update
Open

Improve QR generator UX#1
fwextensions wants to merge 1 commit into
SFDigitalServices:mainfrom
fwextensions:jdunning/feat/http-filter-auto-update

Conversation

@fwextensions

Copy link
Copy Markdown

Changes

  • Block HTTP URLs — only is accepted; error message updated accordingly
  • Hide preview on input change — typing in the URL field immediately clears any existing QR code so users don't mistake a stale code for the current URL
  • Size buttons re-render immediately — after a code has been generated, clicking a different size regenerates the QR code at that size without requiring a second click of Generate
  • Enter key support — pressing Enter in the URL field triggers generation when the URL is valid
  • Keyboard focus ring on size buttons — uses :focus-visible on the label via has() so the blue outline appears during keyboard navigation but not on mouse click

- Block HTTP URLs: only https:// is now accepted; error message updated accordingly
- Hide preview on input change: typing in the URL field immediately clears any existing QR code so users don't mistake a stale code for the current URL
- Size buttons re-render immediately: after a code has been generated, clicking a different size regenerates the QR code at that size without requiring a second click of Generate
- Enter key support: pressing Enter in the URL field triggers generation when the URL is valid
- Keyboard focus ring on size buttons: uses :focus-visible on the label via has() so the blue outline appears during keyboard navigation but not on mouse click
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant