Fix button focus styling - #7962
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan includes up to 4 reviews per rolling hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe button styles separate hover behavior from focus behavior. Focus-visible buttons receive an offset active-color outline. Other focus states suppress the outline. ChangesButton focus styling
Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to This localized styling change separates hover and keyboard focus behavior so clicked buttons return to their normal appearance while retaining a visible keyboard focus indicator; no actionable merge-blocking risk remains after normal checks and review. Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed: dependency version conflict. Check your lock file or package.json. 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. Comment |
7c5fa01 to
1802268
Compare
|
Preview deployment for PR #7962 removed. This PR preview was automatically pruned because we keep only the 3 most recently updated previews on GitHub Pages to stay within deployment size limits. If needed, push a new commit to this PR to generate a fresh preview. |
|
Since this PR is intentionally self-contained and shouldn't depend on #7960 merging first, could the button's |
okay i will fix |
Signed-off-by: DS123-ally <dineshseervi33716@gmail.com>
1802268 to
453f68e
Compare
|
@Sbragul26 can you plz review the pr i have fix it. |
Description
Fixes the persistent dark state on the Next button after it is clicked.
Fixes #7940.
The shared button styling applied the same dark background to both
:hoverand:focus. After a mouse click, the button retained focus, so it stayed visually dark until focus moved elsewhere. This made the button look inactive or disabled.This change keeps the dark styling on hover only and adds a
:focus-visibleoutline so keyboard users still get a clear focus indicator.Before
632756758-eace8c17-4634-4721-a28b-c4787ba3f4d7.mp4
After
next-button-focus-fix-demo.1.mp4
The first section shows the original issue: the Next button remains dark after click. The final section shows the fixed behavior: the button returns to its normal yellow state immediately after click.
Validation
.\node_modules\.bin\eslint.cmd src\reusecore\Button\btn.style.jsgit diff --checkSummary by CodeRabbit