Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Setting min-width for buttons #6387

Merged
merged 1 commit into from
Dec 22, 2016
Merged

Setting min-width for buttons #6387

merged 1 commit into from
Dec 22, 2016

Conversation

luixxiul
Copy link
Contributor

@luixxiul luixxiul commented Dec 22, 2016

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Per @bradleyrichter the min-width was set to 6 times the default character's size

Closes #6384

Auditors:

Test Plan:

  1. Open about:autofill
  2. Click "Add Address"
  3. Make sure the width of the button "Cancel" and "Save" is equal

screenshot 2016-12-22 18 43 38

into

screenshot 2016-12-22 18 43 45

Per @bradleyrichter the min-width was set to 6 times the default character's size

Closes #6384

Auditors: @bradleyrichter @bsclifton @jkup

Test Plan:
1. Open about:autofill
2. Click "Add Address"
3. Make sure the width of the button "Cancel" and "Save" is equal
@luixxiul luixxiul added misc/button polish Nice to have — usually related to front-end/visual tasks. labels Dec 22, 2016
@luixxiul luixxiul modified the milestone: 0.13.1 Dec 22, 2016
@@ -82,6 +82,7 @@ span.buttonSeparator {
padding-bottom: 5px;
width: auto;
height: auto;
min-width: calc(@defaultFontSize * 6); // issue #6384
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible there are some buttons this will make unexpectedly bigger than what it was?

Copy link
Contributor Author

@luixxiul luixxiul Dec 22, 2016

Choose a reason for hiding this comment

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

As far as I can tell via the picture on #6384 (comment) where you see primaryButton, .actionButton, .wideButton, .subtleButton, and .whiteButton, I don't think so.

@bbondy bbondy added this to the 0.13.0 milestone Dec 22, 2016
@bbondy
Copy link
Member

bbondy commented Dec 22, 2016

ok thanks. ++

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
misc/button polish Nice to have — usually related to front-end/visual tasks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants