Skip to content

Set the font-size of h3 correctly on single command page - #227

Closed
outdoor2kode wants to merge 1 commit into
trunkfrom
fix/single-command-h3-font-size
Closed

outdoor2kode wants to merge 1 commit into
trunkfrom
fix/single-command-h3-font-size

Conversation

@outdoor2kode

@outdoor2kode outdoor2kode commented Mar 2, 2023 •

Copy link
Copy Markdown
Contributor

Screenshots

Before After
Screen Shot 2023-03-03 at 3 37 11 AM Screen Shot 2023-03-03 at 3 36 58 AM

Question

The font size of h3 is broken because this part will have an effect like the image below shows. It sets a font size for the headings not only under the .wp-block-wporg-table-of-contents but all the h2, h3, h4, h5, and h6 on the page. Is this expected originally?

image

@outdoor2kode
outdoor2kode marked this pull request as ready for review March 2, 2023 19:50
@outdoor2kode outdoor2kode self-assigned this Mar 2, 2023
@outdoor2kode outdoor2kode added the [Type] Bug Something isn't working label Mar 2, 2023
@ryelle

ryelle commented Mar 2, 2023

Copy link
Copy Markdown
Contributor

@renintw That seems like a bug in gutenberg — the rule in theme.json should generate .wp-block-wporg-table-of-contents h1, .wp-block-wporg-table-of-contents h2, .wp-block-wporg-table-of-contents h3, .wp-block-wporg-table-of-contents h4, .wp-block-wporg-table-of-contents h5, .wp-block-wporg-table-of-contents h6.

@StevenDufresne

Copy link
Copy Markdown
Contributor

@renintw That seems like a bug in gutenberg — the rule in theme.json should generate .wp-block-wporg-table-of-contents h1, .wp-block-wporg-table-of-contents h2, .wp-block-wporg-table-of-contents h3, .wp-block-wporg-table-of-contents h4, .wp-block-wporg-table-of-contents h5, .wp-block-wporg-table-of-contents h6.

I've noticed some of the headings are looking smaller than they should. Unsure if it's related.

Example:
Screen Shot 2566-03-03 at 08 37 16

@outdoor2kode

Copy link
Copy Markdown
Contributor Author

@renintw That seems like a bug in gutenberg — the rule in theme.json should generate .wp-block-wporg-table-of-contents h1, .wp-block-wporg-table-of-contents h2, .wp-block-wporg-table-of-contents h3, .wp-block-wporg-table-of-contents h4, .wp-block-wporg-table-of-contents h5, .wp-block-wporg-table-of-contents h6.

I've noticed some of the headings are looking smaller than they should. Unsure if it's related.

Example: Screen Shot 2566-03-03 at 08 37 16

Yeah, it's also affected by that. I will file an issue in Gutenberg to confirm this problem with them.

@ryelle

ryelle commented Mar 6, 2023

Copy link
Copy Markdown
Contributor

It looks like the cause of this problem is from GB, and should be fixed when GB 15.4 is released, in about 2 weeks. See WordPress/gutenberg#48759.

I think we should not merge this PR, but no preference about whether we close it now or wait til 15.4 fixes the issue.

@outdoor2kode outdoor2kode added the [Status] On Hold Work is paused temporarily label Mar 6, 2023
@outdoor2kode

outdoor2kode commented Mar 6, 2023 •

Copy link
Copy Markdown
Contributor Author

Yeah, I have noticed the PR. I'm tempted not to close it for now and use it for tracking purposes.

@ryelle

ryelle commented Mar 6, 2023

Copy link
Copy Markdown
Contributor

I'm tempted not to close it for now and use it for tracking purposes.

That works for me 👍🏻

@outdoor2kode

Copy link
Copy Markdown
Contributor Author

Closed as the issue was confirmed fixed after GB 15.4 was released.

image
image

@outdoor2kode
outdoor2kode deleted the fix/single-command-h3-font-size branch March 27, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Status] On Hold Work is paused temporarily [Type] Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants