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

button style inconsistency on about:preferences (button normalization) #9223

Closed
luixxiul opened this issue Jun 3, 2017 · 5 comments
Closed
Labels
feature/about-pages misc/button priority/P5 Cosmetic. Spelling, copy, layout. New features (which should also be part of an initiative). release-notes/exclude stale

Comments

@luixxiul
Copy link
Contributor

luixxiul commented Jun 3, 2017

Describe the issue you encountered: the button style on about:preferences#sync is different with that on the other tabs of about:preferences such as about:preferences#payments

screenshot 2017-06-03 14 17 26 screenshot 2017-06-03 14 17 34

The button on the left looks thinner and the font-size looks smaller than the button on the right.

See:

.paymentsContainer button:not(.close),

Also the styles of buttons on browser's UI such as bookmark hanger dialog is different with them.

screenshot 2017-06-03 14 19 24

See:

--default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", sans-serif;

You would see the different font-family is specified to each of them.

We are on the way of normalizing the buttons by converting buttton component with browserButton component. We would have to investigate which font-size, font-family, and line-height (the properties which can/must be specified with font property) should be applied as to browserButton inside browserButton.js.

  • Brave Version (revision SHA): 0.15.314

  • Extra QA steps:
    1.
    2.
    3.

  • Any related issues:

@luixxiul luixxiul added the needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. label Jun 3, 2017
@luixxiul
Copy link
Contributor Author

luixxiul commented Jun 3, 2017

Another thing we have to decide: should we revert font-size and padding of the buttons on about:preferences#sync same as it has been, by creating preferenceItem and apply these to it?

That would make the size of the buttons on about:preferences#sync same as the other buttons on other preference tabs.

@cezaraugusto I noticed that font-weight: 500 has not been specified to browserButton_primaryColor. I'm going to add it to make the font-weight like this:

screenshot 2017-06-03 14 50 04

The reason why "Done" button on bookmark hanger looks bold is due to font-family chosen there; the font-family specified for the button is itself bolder than the font-family for the buttons on preferences, so the effect is not intentional but coincidental.

screenshot 2017-06-03 14 19 24

If we normalize the font-family, the done button could look thinner, based on the font-family we would choose.

@luixxiul luixxiul added this to the 0.18.x milestone Jun 3, 2017
@luixxiul luixxiul modified the milestones: 0.19.x, 0.18.x (Frozen, only critical adds from here) Jun 11, 2017
@cezaraugusto cezaraugusto modified the milestones: 0.20.x (Nightly Channel), 0.19.x (Developer Channel) Jul 11, 2017
@luixxiul luixxiul modified the milestones: 0.22.x, 0.20.x (Developer Channel) Aug 8, 2017
@cezaraugusto cezaraugusto removed their assignment Aug 16, 2017
@cezaraugusto
Copy link
Contributor

cc @bradleyrichter

@bradleyrichter
Copy link
Contributor

we need to get them all referencing the same style definition so we can easily refine it collectively. I want to flatten them out a bit and reduce the shadows.

So in this case, sync is "out of sync". : )

@luixxiul
Copy link
Contributor Author

luixxiul commented Sep 21, 2017

After When #10951 is merged and <Button> is replaced with <BrowserButton>, let's try to set the font-family to <BrowserButton> and see if it will make the buttons look consistent on about pages and browser level dialog.

--default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", sans-serif;

@luixxiul luixxiul removed this from the 0.22.x milestone Sep 21, 2017
@luixxiul luixxiul added this to the 0.21.x (Nightly Channel) milestone Sep 21, 2017
@luixxiul luixxiul added refactoring/aphrodite and removed needs-investigation A bug not 100% confirmed/fixed that needs QA to better audit. labels Sep 21, 2017
@luixxiul
Copy link
Contributor Author

The cause of the difference is that, while on about pages -webkit-font-smoothing: antialiased is set with common.less, on the commonForm it is not. With the commit above I reset the value and that should make the buttons look consistent.

@ghost ghost removed the priority/P5 Cosmetic. Spelling, copy, layout. New features (which should also be part of an initiative). label Sep 26, 2017
@bbondy bbondy removed this from the 0.21.x (Developer Channel) milestone Oct 25, 2017
@bbondy bbondy modified the milestones: 0.20.x (Beta Channel), Backlog Oct 25, 2017
@alexwykoff alexwykoff added the priority/P5 Cosmetic. Spelling, copy, layout. New features (which should also be part of an initiative). label Oct 31, 2017
@bbondy bbondy modified the milestones: Triage Backlog, Prioritized Backlog Nov 2, 2017
@luixxiul luixxiul removed their assignment Feb 13, 2018
@bsclifton bsclifton added the stale label Sep 3, 2018
@bsclifton bsclifton removed this from the Backlog (Prioritized) milestone Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature/about-pages misc/button priority/P5 Cosmetic. Spelling, copy, layout. New features (which should also be part of an initiative). release-notes/exclude stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants