Page MenuHomePhabricator

[web] Make button size consistent between variants
ClosedPublic

Authored by tomek on Jun 24 2022, 8:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 4:02 PM
Unknown Object (File)
Fri, Nov 8, 6:51 AM
Unknown Object (File)
Wed, Oct 30, 10:02 AM
Unknown Object (File)
Wed, Oct 23, 2:03 AM
Unknown Object (File)
Oct 14 2024, 4:12 AM
Unknown Object (File)
Oct 14 2024, 12:46 AM
Unknown Object (File)
Oct 14 2024, 12:46 AM
Unknown Object (File)
Oct 14 2024, 12:45 AM
Subscribers

Details

Summary

Our button has different size depending on the variant, because secondary button has a border that increases its size. The issue isn't usually noticeable, but can be detected by using the debugger. It becomes visible when secondary and primary buttons are displayed in the same line.
The solution is for button to always have a border, which is transparent when the button is primary.

Test Plan

Checked in a couple of places if it still looks ok. There are places when sizing is slightly changed, because primary button is 2 pixels bigger, but the layout is ok in every place.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Jun 24 2022, 8:28 AM

Yup, this makes sense to me. I think the difference in border size was overlooked in D3057, but nice catch!

This revision is now accepted and ready to land.Jun 24 2022, 9:56 AM