Skip to content

Improve button outlines#2004

Merged
sjd210 merged 5 commits intomainfrom
improvement/button-outlines
Feb 27, 2026
Merged

Improve button outlines#2004
sjd210 merged 5 commits intomainfrom
improvement/button-outlines

Conversation

@jacbn
Copy link
Contributor

@jacbn jacbn commented Feb 24, 2026

Reverts to using outline and outline-offset to manage button :focus rings.

I'm sure there was a reason for using box shadow at the time, but I can't find it now. Using outlines is much cleaner as it does not require that the background be a specific colour. It is less flexible r.e. shape, but for buttons this is okay (for other cases there is the focus-outline mixin that uses box-shadow when required)

@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.19%. Comparing base (0648363) to head (07dce2f).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #2004    +/-   ##
========================================
  Coverage   43.19%   43.19%            
========================================
  Files         575      575            
  Lines       24746    24746            
  Branches     8214     8214            
========================================
  Hits        10690    10690            
- Misses      13380    14007   +627     
+ Partials      676       49   -627     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…lines

[VRT] Update baselines for improvement/button-outlines
Copy link
Contributor

@sjd210 sjd210 left a comment

Choose a reason for hiding this comment

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

I remember you specifically making the change to migrate things over to box-shadow, but I also can't find the reason for it - and looking online there doesn't seem to be much consensus over the better way to do things.

I'm happy as long as we're mostly consistent, and I've checked over various buttons in different contexts which are working well, so this is all fine.

@sjd210 sjd210 merged commit 56e96c3 into main Feb 27, 2026
10 checks passed
@sjd210 sjd210 deleted the improvement/button-outlines branch February 27, 2026 10:02
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.

3 participants