Skip to content

fix: add focus-visible styles to share button for improved accessibility#999

Merged
MODSetter merged 1 commit into
MODSetter:devfrom
JoeMakuta:fix/add-focus-visible-to-share-button
Mar 27, 2026
Merged

fix: add focus-visible styles to share button for improved accessibility#999
MODSetter merged 1 commit into
MODSetter:devfrom
JoeMakuta:fix/add-focus-visible-to-share-button

Conversation

@JoeMakuta

@JoeMakuta JoeMakuta commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Description

I've updated the share dialog's visibility option buttons to include a proper focus-visible ring indicator. The buttons now have:

  • focus-visible:ring-2 - A 2-pixel ring that appears when focused via keyboard
  • focus-visible:ring-ring - Uses the project's standard ring color from shadcn
  • focus-visible:ring-offset-2 - Adds proper spacing between the ring and element

Motivation and Context

FIX #915

Screenshots

image

API Changes

  • This PR includes API changes

Change Type

  • Bug fix
  • New feature
  • Performance improvement
  • Refactoring
  • Documentation
  • Dependency/Build system
  • Breaking change
  • Other (specify):

Testing Performed

  • Tested locally
  • Manual/QA verification

Checklist

  • Follows project coding standards and conventions
  • Documentation updated as needed
  • Dependencies updated as needed
  • No lint/build errors or new warnings
  • All relevant tests are passing

High-level PR Summary

This PR improves keyboard navigation accessibility by adding focus-visible ring indicators to the share dialog's visibility option buttons. The change adds three Tailwind CSS classes (focus-visible:ring-2, focus-visible:ring-ring, and focus-visible:ring-offset-2) to two button elements, ensuring proper visual feedback when users navigate using keyboard controls.

⏱️ Estimated Review Time: 5-15 minutes

💡 Review Order Suggestion
Order File Path
1 surfsense_web/components/new-chat/chat-share-button.tsx

Need help? Join our Discord

Analyzing latest changes...

@vercel

vercel Bot commented Mar 27, 2026

Copy link
Copy Markdown

@JoeMakuta is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel.

A member of the Team first needs to authorize it.

@recurseml recurseml Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review by RecurseML

🔍 Review performed on c7ace83..0b4ba58

✨ No bugs found, your code is sparkling clean

✅ Files analyzed, no issues (1)

surfsense_web/components/new-chat/chat-share-button.tsx

@MODSetter MODSetter merged commit 3e10c09 into MODSetter:dev Mar 27, 2026
9 of 10 checks passed
@JoeMakuta JoeMakuta deleted the fix/add-focus-visible-to-share-button branch April 13, 2026 05:49
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.

2 participants