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

プルクオートブロック:フロントエンドでフォントサイズが異なる #140

Closed
t-hamano opened this issue Mar 16, 2024 · 2 comments

Comments

@t-hamano
Copy link
Contributor

WP6.4/6.5ともに発生。

テーマ側で font-size: 1.2emを適用しているが、フロントエンドではグローバルスタイル (global-styles-inline-css) が font-size: 1.5em を適用するため、エディター側とデフォルトフォントサイズが異なってしまう。

pullquote

クラシックテーマで、このグローバルスタイルがフロントエンドで出力される事自体が不具合のようにみえますが、テーマ側で詳細度を上げてもよいかもしれません。

@ddryo
Copy link
Collaborator

ddryo commented Mar 30, 2024

確かに、クラシックテーマでフロントでのみフォントサイズ指定されてますね。
コアの不具合だと思いますが一応詳細度高めて対応しました。

@ddryo ddryo closed this as completed in d3af24e Mar 30, 2024
@t-hamano
Copy link
Contributor Author

こちらの問題ですが、最新のGutenbergで確認した所、詳細度が下がっていたため問題は発生しないようです。

WP6.5 RC4

コアのスタイルがテーマのスタイルに勝っている

image

WP6.5 RC4 + 最新のGutenberg

コアのスタイルに :where が使われるようになったため、テーマのスタイルが勝っている

image

なお、このスタイルはblock.jsonの __experimentalStyleから来ているのですが、これがフロントエンドだけに適用される問題については、以下で報告されています。

WordPress/gutenberg#46818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants