New projects with current CLI are creating beta5 so I then removed node_modules and manually changed package to upgrade to beta 7 and npm installed.
Now I’m up to Beta7.
The first issue is that the global.scss is calling for @ionic/angular/css/colors.css which breaks the build.
I copied the file from a previous project and that is resolved (although - why? Is it just a missing file? )
But past that problem I get to the meat of the topic title:
@ionic/angular/css/typography.css
Beta7 - typography.css makes my default font serif/times while the previous versions kept roboto or some sans serif.
Images below.
The beta7 starts with html{ while the previous versions used :root
If I replace the :root way in my beta7 project all is as it was but should I not be doing that?
Beta7 - typography.css:
html{font-family:var(--ion-font-family)}a{background-color:transparent;color:var(--ion-color-primary, #3880ff)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:var(--ion-header-size, 26px)}h2{margin-top:18px;font-size:calc(var(--ion-header-size, 26px) - var(--ion-header-step, 2px))}h3{font-size:calc(var(--ion-header-size, 26px) - var(--ion-header-step, 2px) * 2)}h4{font-size:calc(var(--ion-header-size, 26px) - var(--ion-header-step, 2px) * 3)}h5{font-size:calc(var(--ion-header-size, 26px) - var(--ion-header-step, 2px) * 4)}h6{font-size:calc(var(--ion-header-size, 26px) - var(--ion-header-step, 2px) * 5)}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}
Beta5/6 - typography.css:
:root[mode=ios]{--ion-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Roboto", sans-serif;font-family:-apple-system, BlinkMacSystemFont, "Helvetica Neue", "Roboto", sans-serif}:root[mode=md]{--ion-font-family: "Roboto", "Helvetica Neue", sans-serif;font-family:"Roboto", "Helvetica Neue", sans-serif}a{background-color:transparent;color:var(--ion-color-primary, #3880ff)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:var(--ion-header-size, 26px)}h2{margin-top:18px;font-size:calc(var(--ion-header-size, 26px) - var(--ion-header-step, 2px))}h3{font-size:calc(var(--ion-header-size, 26px) - var(--ion-header-step, 2px) * 2)}h4{font-size:calc(var(--ion-header-size, 26px) - var(--ion-header-step, 2px) * 3)}h5{font-size:calc(var(--ion-header-size, 26px) - var(--ion-header-step, 2px) * 4)}h6{font-size:calc(var(--ion-header-size, 26px) - var(--ion-header-step, 2px) * 5)}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}
Also, notice that the ion-router-outlet.ion-content cuts off the text. I have to edit the ion-router-outlet.ion-content to increase the height to see it.
Here is a fresh project started ( CLI builds Beta5 ):
Here is after upgrade to Beta7: