-
Notifications
You must be signed in to change notification settings - Fork 275
UI4: Fix Nugget Styling #4834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI4: Fix Nugget Styling #4834
Conversation
5c4e89b to
f4a6f4e
Compare
src/components/ui4/ButtonUi4.tsx
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you plan to remove this, then put /* @deprecated */ on the line before to get the obvious strikeout when somebody uses it.
Edit: Oh, I see you just removed it in the next commit. If you swapped the two commits in order, then you could just delete this without ceremony.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. So the default behavior is essentially 0 marginRem, but with a stretched tap-box. If somebody does specify a marginRem, then we include that in the trappable area. Doing marginRem={0} isn't quite the same as the default, because we lose the extra tappable area.
Yeah, this seems like a good design. Good balance of nice defaults and configurability.
47713a3 to
6ff510e
Compare
'alignSelf' is now completely handled by ButtonUi4
No callers directly called ButtonUi4 with custom margins. MainButton: - Built-in horizontal margins removed. Remnant from when we had full width buttons. - Mostly doubled callers' custom margins to account for fix. - Removed custom horizontal margins and capped bottom margins for some users.
6ff510e to
48a2131
Compare
Uh oh!
There was an error while loading. Please reload this page.
Red background fill shows increased tappable areas
image
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have: