NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar hans2103
hans2103
2 Dec 2020

Pull Request for Issue # .

Summary of Changes

This PR will change the $font-size-root to 1em.

Increasing font-size with increasing viewport width is too early for us. :-)

Testing Instructions

  • Joomla 4
  • npm run build:css
  • see frontend ... increase view port and see that font-size grows
  • apply path
  • npm run build:css
  • see frontend. ... increase viewport and see that font-size does not grow anymore

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Documentation Changes Required

avatar hans2103 hans2103 - open - 2 Dec 2020
avatar hans2103 hans2103 - change - 2 Dec 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Dec 2020
Category Front End Templates (site) NPM Change
avatar infograf768 infograf768 - test_item - 2 Dec 2020 - Not tested
avatar infograf768 infograf768 - test_item - 2 Dec 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 2 Dec 2020

I have tested this item successfully on 041c21c

better than before.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31555.

avatar hans2103 hans2103 - change - 2 Dec 2020
Title
[4.0-dev] set font-size-root to 1em
[4.0-dev] Cassiopeia set font-size-root to 1em
avatar hans2103 hans2103 - edited - 2 Dec 2020
avatar infograf768
infograf768 - comment - 2 Dec 2020

To clarify my comment and the discussion we had in glip chat:
the issue with Cassiopea font size concerns mainly larger monitors where the font size has an enormous impact on scrolling.
Even this new size is a bit too big for me on both

iMac: Display Type: Built-In Retina LCD
Resolution: 4096 x 2304 Retina

and

SMB2440MH:
Resolution: 1920 x 1080 @ 60 Hz

Discussion opened:

avatar brianteeman
brianteeman - comment - 2 Dec 2020

This is not the correct approach. The fundamental problem is that 16px is too big. The correct approach is shown in #31207

avatar brianteeman
brianteeman - comment - 2 Dec 2020

As explained already in #31207 all the font calculations are currently wrong in cassiopeia as well as in atum. They should be using the bootstrap 4 approach and not individually hard coded.

avatar hans2103
hans2103 - comment - 2 Dec 2020

The issue @brianteeman is referring to is for Atum, backend template, not for Cassiopeia, frontend template.

With the build of Cassiopeia the font-size-root was set early. All font-sizes, paddings and margins are based on that.
We've tried to stay away from Bootstrap as much as possible.

avatar chmst chmst - test_item - 2 Dec 2020 - Tested successfully
avatar chmst
chmst - comment - 2 Dec 2020

I have tested this item successfully on 041c21c

It is generally agreed upon that 16px (1em) for body text is a good starting point for AA. This PR has no visible impact on the font sizes on my Laptop and monitor, so it is ok for me.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31555.

avatar brianteeman
brianteeman - comment - 2 Dec 2020

@hans2103 the issue is exactly the same as is the solution. Both templates are bootstrap 4 based and currently both are defining all the font sizes incorrectly. Avoiding well defined bootstrap markup by overriding it is not the cleverest thing in the world. Remember
image

avatar richard67 richard67 - change - 2 Dec 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 2 Dec 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31555.

avatar richard67 richard67 - change - 2 Dec 2020
Labels Added: ? ? NPM Resource Changed
avatar drmenzelit drmenzelit - change - 2 Dec 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-12-02 16:08:46
Closed_By drmenzelit
Labels
avatar drmenzelit drmenzelit - close - 2 Dec 2020
avatar drmenzelit drmenzelit - merge - 2 Dec 2020
avatar drmenzelit
drmenzelit - comment - 2 Dec 2020

Thanks!

avatar brianteeman
brianteeman - comment - 2 Dec 2020

This should not have been merged - it is wrong

avatar drmenzelit
drmenzelit - comment - 2 Dec 2020

The PR set the font-size-root back to 1rem as Bootstrap do.

avatar N6REJ
N6REJ - comment - 4 Dec 2020

@brianteeman the only thing wrong with this pr is that it's declaring something that is predeclared in the browser.

@hans2103 the issue is exactly the same as is the solution. Both templates are bootstrap 4 based and currently both are defining all the font sizes incorrectly. Avoiding well defined bootstrap markup by overriding it is not the cleverest thing in the world. Remember
image

you stress how anti-bootstrap it is, when infact it is EXACTLY what bootstrap does which is why imo it's not needed.
This is straight out of BS4!

$font-size-base:              1rem !default; // Assumes the browser default, typically `16px`
$font-size-lg:                $font-size-base * 1.25 !default;
$font-size-sm:                $font-size-base * .875 !default;

Add a Comment

Login with GitHub to post a comment