Skip to content

Conversation

@gcamacho079
Copy link
Contributor

…ut to use modifier key

Description

  • Adds a modifier key to search shortcut to:
    • Prevent conflict with existing browser shortcuts
    • Prevent using a single key shortcut (which can conflict with screen reader commands)

Related issues

Resolves PT-1071, PT-1068

@gcamacho079 gcamacho079 requested a review from a team as a code owner October 20, 2025 16:36
@gcamacho079 gcamacho079 added the Accessibility WCAG violations and usability issues. label Oct 20, 2025
@linear
Copy link

linear bot commented Oct 20, 2025

@gcamacho079
Copy link
Contributor Author

@AugustMiller I'm curious if you'd suggest putting the quotation marks in a different place around this shortcut, or if it looks okay as-is:
Placeholder text in the search input that reads 'Press Ctrl/Command + /' to focus search. Quotations are wrapping the / character, but not the rest of the shortcut keys

@netlify
Copy link

netlify bot commented Oct 20, 2025

Deploy Preview for craft-docs ready!

Name Link
🔨 Latest commit 04afa82
🔍 Latest deploy log https://app.netlify.com/projects/craft-docs/deploys/69013eae484544000820b72d
😎 Deploy Preview https://deploy-preview-738--craft-docs.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 project configuration.

@AugustMiller
Copy link
Contributor

AugustMiller commented Oct 28, 2025

Attempted to make this platform-aware:

search-macos search-other

I assume the quotes around the “/” would be either read (awkward) or skipped (OK) by a screen reader?

The metrics on this font are all wonky! At some point, maybe we can provide a supplemental label via a key-like UI element, like this:

Screenshot 2025-10-28 at 14 56 30

@AugustMiller AugustMiller merged commit 19cd510 into main Oct 28, 2025
9 checks passed
@AugustMiller AugustMiller deleted the lupe/pt-1071-search-label-is-not-persistent branch October 28, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Accessibility WCAG violations and usability issues.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants