Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Styles: Heading and base fonts switched #43904

Closed
KokkieH opened this issue Jul 6, 2020 · 18 comments
Closed

Global Styles: Heading and base fonts switched #43904

KokkieH opened this issue Jul 6, 2020 · 18 comments
Assignees
Labels
[Pri] Normal [Type] Bug User Report This issue was created following a WordPress customer report

Comments

@KokkieH
Copy link
Contributor

KokkieH commented Jul 6, 2020

Steps to reproduce

  1. Enable a Varia child theme, e.g. Redhill or Brompton.
  2. Create a new post, add a title and some paragraphs
  3. Click the global styles icon and change the heading and base font

What I expected

For the selected fonts to be applied to the title and content respectively.

What happened instead

The base font gets applied to the post title, and the heading font gets applied to the paragraphs.

Screenshot / Video

Edit_Post_‹_kokkiestrialtestsite_—_WordPress_com

Context / Source

Discovered while checking something unrelated in helping the user in https://wordpress.com/forums/topic/varia-theme/

@FireQueen-3010
Copy link
Contributor

I want to work on this!

@pauljacobson
Copy link

I picked up on this in 3117893-zen while on a Quick Start Support session with a user. The user was using the Redhill theme at the time, and you can see the issue in action here.

@kcswong
Copy link

kcswong commented Dec 3, 2020

Just got another report of this from a user in 26017946-hc where they reported this behavior, but I observed that changing the Heading font changed the font for the whole site

@simison
Copy link
Member

simison commented Jan 26, 2021

observed that changing the Heading font changed the font for the whole site

That's intentional 👍

The user was using the Redhill theme at the time, and you can see the issue in action here.

@scruffian hi! is this a theme bug?

@scruffian
Copy link
Member

I'll add it to the list...

@pbking pbking self-assigned this Jan 27, 2021
@pbking
Copy link
Contributor

pbking commented Jan 27, 2021

From what I can tell this is a theme issue and seems to be specific to Redhill. (Contrary to the notes in the description testing with Brompton show that the header/base fonts follow the settings in the Style Editor.) So far Redhill is the only theme that I have noticed this issue in, however I have thus far only evaluated some of the Varia child themes. (Varia itself is also not experiencing the issue.)

This is not recent breakage, the Redhill theme appears to have inverted the header/base fonts since the initial commit of the theme which is the inverse of other child themes. (That heading style is referenced as an example; There are many other spots where the primary/secondary variable usage was swip-swapped).

There are a couple of ways this might be addressed, but all of them would invert [all,most] of the element's current font selections (things using a header font would switch to a base, things using the base font would switch to header). Which would address the ask of the issue. However it would also suddenly invert the font selections of all sites using the Redhill theme that are leveraging that Global Style editor.

@pbking
Copy link
Contributor

pbking commented Jan 27, 2021

One potential option for a fix might be: Automattic/themes#3123

@scruffian
Copy link
Member

@simison what are your thoughts on this fix? The concern is that this will switch things for existing users...

@simison
Copy link
Member

simison commented Jan 28, 2021

Oh, that's a bummer! We shouldn't do that, at least without communicating with customers first.

Are there any technical solutions to fix this and avoid changing it to existing customers who applied fonts on that theme?

cc @ianstewart

@scruffian
Copy link
Member

I guess we could run a script to update all of the fonts for users of this theme manually... 😭

@simison
Copy link
Member

simison commented Jan 28, 2021

Yeah, we have some scripts to do that already. It's less scary than it sounds. :-)

I agree that's probably the best, considering that adding any conditionals in code would need to be maintained ad-infinitum anyway, so it's better to do more work to get it sorted all at once.

@scruffian
Copy link
Member

Ok, can I let y'all handle this? You have the PR for when you need it..

@simison
Copy link
Member

simison commented Feb 15, 2021

@scruffian Hi! I didn't notice your question earlier, thanks for patience.

Did you mean that .com teams would do the migration? I think it goes a bit more into theme-integration aspects of work so I'd expect it from you all.

@pbking
Copy link
Contributor

pbking commented Feb 15, 2021

The portion of the theme that needs to change is (I believe) covered by the PR noted above. It and the inversion of existing header/body selections for Redhill should be brought in together, but I'm afraid I have no idea how the inversion portion would be done. @simison you mentioned above that you have some scripts to do that part already. Will you be able to help us out with that?

@simison
Copy link
Member

simison commented Feb 15, 2021

Gotcha! Yeah so I just meant that there are heaps of scripts for this kind of tasks on wpcom at bin/one-time/*.

@scruffian
Copy link
Member

Ok I've added it to the board. @jeffikus I'll let you prioritize this one :)

@kristenzuck kristenzuck added the User Report This issue was created following a WordPress customer report label Apr 29, 2021
@youbrokesomething
Copy link
Contributor

The Redhill theme was retired in June 2021 and there haven't been user complaints since (on this issue at least) so I'm going to close this.

@github-actions
Copy link

Support References

This comment is automatically generated. Please do not edit it.

  • 3117893-zen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Pri] Normal [Type] Bug User Report This issue was created following a WordPress customer report
Projects
None yet
Development

No branches or pull requests

9 participants