brave-core icon indicating copy to clipboard operation
brave-core copied to clipboard

Removed 'Muli' font. Added 'Manrope' font. Extended 'Poppins' with 'Manrope' for Cyrillic&Greek chars.

Open boocmp opened this issue 2 years ago • 34 comments

Resolves https://github.com/brave/brave-browser/issues/4309

Submitter Checklist:

  • [x] I confirm that no security/privacy review is needed, or that I have requested one
  • [x] There is a ticket for my issue
  • [x] Used Github auto-closing keywords in the PR description above
  • [ ] Wrote a good PR/commit description
  • [ ] Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • [x] Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • [ ] Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • [x] Ran git rebase master (if needed)

Reviewer Checklist:

  • [ ] A security review is not needed, or a link to one is included in the PR description
  • [ ] New files have MPL-2.0 license header
  • [ ] Adequate test coverage exists to prevent regressions
  • [ ] Major classes, functions and non-trivial code blocks are well-commented
  • [ ] Changes in component dependencies are properly reflected in gn
  • [ ] Code follows the style guide
  • [ ] Test plan is specified in PR before merging

After-merge Checklist:

  • [ ] The associated issue milestone is set to the smallest version that the changes has landed on
  • [ ] All relevant documentation has been updated, for instance:
    • [ ] https://github.com/brave/brave-browser/wiki/Deviations-from-Chromium-(features-we-disable-or-remove)
    • [ ] https://github.com/brave/brave-browser/wiki/Proxy-redirected-URLs
    • [ ] https://github.com/brave/brave-browser/wiki/Fingerprinting-Protections
    • [ ] https://github.com/brave/brave-browser/wiki/Brave%E2%80%99s-Use-of-Referral-Codes
    • [ ] https://github.com/brave/brave-browser/wiki/Custom-Headers
    • [ ] https://github.com/brave/brave-browser/wiki/Web-Compatibility-Exceptions-in-Brave
    • [ ] https://github.com/brave/brave-browser/wiki/QA-Guide
    • [ ] https://github.com/brave/brave-browser/wiki/P3A

Test Plan:

boocmp avatar Apr 07 '22 14:04 boocmp

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Apr 07 '22 15:04 brave-builds

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Apr 10 '22 04:04 brave-builds

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Apr 11 '22 02:04 brave-builds

kindly ping @petemill @bsclifton @zenparsing - can you please take a look when you have some time? This fixes a P2 issue

iefremov avatar Apr 21 '22 18:04 iefremov

@boocmp needs rebase

iefremov avatar Apr 21 '22 18:04 iefremov

I'll take a look at reviewing this, but I'll need to do a build to see the difference. I would suggest you append some more items the description:

  • Which UIs that are affected by replacing Multi with Poppins, so we can check font-size and spacing
  • Which different UIs in particular to look at for cyrillic improvements, if any
  • Any other test scenarios that we should run by the design team

Some before and after screenshots would be helpful too.

Thanks!

petemill avatar Apr 21 '22 18:04 petemill

Oh wow - this'll be a great one! (adding Cyrillic support). I can pull down and try after it's rebased

++ on everything @petemill mentioned 😄 Many of the UIs may look the same before/after and it's fine to skip screenshots. But for ones which have a difference (hopefully not a big spacing difference or line height difference, etc) it's good to see what that could be

bsclifton avatar Apr 22 '22 07:04 bsclifton

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Apr 22 '22 09:04 brave-builds

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Apr 22 '22 10:04 brave-builds

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Apr 22 '22 11:04 brave-builds

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Apr 23 '22 03:04 brave-builds

Fonts.zip See in the attachment a few screenshots for the English and Cyrillic versions. In English version, Muli is replaced by Poppins, also all Cyrillic characters are displayed in Manrope In Cyrillic version, only Manrope is used

boocmp avatar Apr 23 '22 04:04 boocmp

Yeah it's looking pretty good at first glance of the screenshots. We'll want to get a designer to look over them to check the font-weight and size differences especially between Muli and Poppins. I think this is a good way of doing it since it'll improve cyrillic font display even for users who are currently viewing pages in non-cyrillic languages. Only issue may be that we have to be granular when choosing a font for different character sets.

Still some TODOs:

  • we removed muli.css but not the font files.
  • we have not removed all references to muli. Some references are provided by theme.fontFamily.body and our default theme provided by brave-ui has a value for this property as Muli. We can replace that value in brave-ui, which seems better semantics than replacing fontFamily.body with fontFamily.heading, although this older design-system is being deprecated soon.

In general we have way too many css definitions of font-family. It only really needs it once per UI since the css value is inherited!

petemill avatar Apr 25 '22 19:04 petemill

@jenn-rhim @bradleyrichter can you please look at screenshots and confirm they look good? https://github.com/brave/brave-core/pull/12933#issuecomment-1107359743

iefremov avatar Apr 26 '22 13:04 iefremov

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Apr 26 '22 14:04 brave-builds

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Apr 29 '22 02:04 brave-builds

It looks great overall 😎, but here is some feedback https://www.figma.com/file/tLXWGCpNoiJxDZDdpfordj/?node-id=1996%3A38663

aguscruiz avatar Apr 29 '22 15:04 aguscruiz

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Jun 07 '22 10:06 brave-builds

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Jun 08 '22 10:06 brave-builds

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Jun 08 '22 14:06 brave-builds

It looks great overall 😎, but here is some feedback https://www.figma.com/file/tLXWGCpNoiJxDZDdpfordj/?node-id=1996%3A38663

Hi, could you please take a look at this build https://brave-jenkins-build-artifacts.s3.amazonaws.com/brave-browser-build-pr/issues/4309/f6c54aadbb37e73a2ab042aad512c4ee68648fa8/windows/brave-v1.41.41-win32-x64.zip

boocmp avatar Jun 08 '22 15:06 boocmp

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Jun 13 '22 13:06 brave-builds

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Jun 24 '22 13:06 brave-builds

I have done the brave-ui changes here: https://github.com/brave/brave-ui/pull/607 You can use this sha for testing that in this PR: e4c049880199ac652b8f69610b8b70d1cd6d906f

petemill avatar Jun 24 '22 18:06 petemill

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Jun 27 '22 11:06 brave-builds

I pushed an update on this branch to the brave-ui ref for https://github.com/brave/brave-ui/pull/607 so that we can get a browser build and Storybook including it. There may be some font style and weight changes required as a result of the additional changes from Muli to Poppins that are caused by changing the theme variable value.

petemill avatar Jun 28 '22 03:06 petemill

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Jul 05 '22 14:07 brave-builds

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Jul 06 '22 09:07 brave-builds

A Storybook has been deployed to preview UI for the latest push

brave-builds avatar Aug 05 '22 15:08 brave-builds

Ignore these for now, the brave-ui change to bring in Muli has regressed as per https://github.com/brave/brave-core/pull/12933#issuecomment-1213440012

~New (Poppins) on left and current (Muli) on right~ Click to open in 100%

Welcome page

image image image

Rewards page

image

petemill avatar Aug 12 '22 18:08 petemill