Skip to content

fix: Improve modal close button focus and hover states#112

Merged
FSM1 merged 1 commit into
fix/input-focus-outlinefrom
claude/address-pr-comment-SyScN
Feb 11, 2026
Merged

fix: Improve modal close button focus and hover states#112
FSM1 merged 1 commit into
fix/input-focus-outlinefrom
claude/address-pr-comment-SyScN

Conversation

@FSM1

@FSM1 FSM1 commented Feb 11, 2026

Copy link
Copy Markdown
Owner

Summary

Enhanced the modal close button's visual feedback by improving transition animations and focus state styling for better accessibility and user experience.

Key Changes

  • Extended CSS transitions to include border-color and border-width for smoother animations when the button state changes
  • Changed focus selector from :focus to :focus-visible to only show focus styles when keyboard navigation is used, improving visual clarity for mouse users
  • Added box-shadow with green glow effect to the focus state for more prominent keyboard focus indication
  • Maintained outline: none to prevent double focus indicators

Implementation Details

The changes ensure that:

  • Border color and width changes animate smoothly instead of appearing instantly
  • Focus styles are only visible for keyboard users (:focus-visible), not mouse users
  • The green glow shadow provides clear visual feedback for keyboard navigation
  • All transitions use consistent 0.15s ease timing

https://claude.ai/code/session_012usW3MQ2WzoKPan778WZb2

- Use :focus-visible instead of :focus for keyboard-only indication
- Add box-shadow glow effect matching other dialog components
- Include border-color/border-width in transition for smooth animation

https://claude.ai/code/session_012usW3MQ2WzoKPan778WZb2
@coderabbitai

coderabbitai Bot commented Feb 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • main

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/address-pr-comment-SyScN

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@FSM1 FSM1 changed the title Improve modal close button focus and hover states fix: Improve modal close button focus and hover states Feb 11, 2026
@FSM1 FSM1 merged commit c928af7 into fix/input-focus-outline Feb 11, 2026
2 of 3 checks passed
@FSM1 FSM1 deleted the claude/address-pr-comment-SyScN branch February 11, 2026 23:41
FSM1 added a commit that referenced this pull request Feb 11, 2026
* fix(web): replace double-outline focus style with thicker border

The global :focus-visible outline (2px + 2px offset) stacked on top of
component borders, creating an ugly double ring on inputs, buttons, and
the modal close button. Switch to a 2px border on focus instead, with
padding compensation to prevent layout shift.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs(quick-012): fix double-outline focus style

Quick task completed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* style(design): update input focus border thickness to 2px

Align Pencil design with implementation: focused input fields now show
2px border instead of 1px to match the thicker single-border focus
style.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: Improve modal close button focus and hover states (#112)

fix(web): improve modal-close focus styling per PR review

- Use :focus-visible instead of :focus for keyboard-only indication
- Add box-shadow glow effect matching other dialog components
- Include border-color/border-width in transition for smooth animation

https://claude.ai/code/session_012usW3MQ2WzoKPan778WZb2

Co-authored-by: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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