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

[ Design Bug Fix ] First aid for an issue where the value of --wp--preset--font-size--huge defined in theme.json is being overwritten by WordPress #293

Merged
merged 1 commit into from
Jul 21, 2024

Conversation

kurudrive
Copy link
Member

@kurudrive kurudrive commented Jul 21, 2024

  1. 新規固定ページを作成(タイトル入力のみ / 本文は未入力)
  2. 公開画面で記事タイトルの文字が正常なのを確認
  3. コードビューで以下のコードを入力して保存
<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"primary"} -->
<div class="wp-block-button"><a class="wp-block-button__link has-primary-background-color has-background wp-element-button">Fill Button</a></div>
<!-- /wp:button -->

<!-- wp:button {"textColor":"primary","className":"is-style-outline"} -->
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link has-primary-color has-text-color wp-element-button">Outline Button</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
  1. 公開画面を見ると記事タイトルの文字サイズが 42px になる
  2. このブランチに切り替えて npm run build
  3. 公開画面を確認 -> 文字サイズが巨大になりすぎてない事を確認

どういう変更をしたか

とりあえず --wp--preset--font-size--huge を上書き

…eset--font-size--huge defined in theme.json is being overwritten by WordPress
@kurudrive kurudrive merged commit 78b9a41 into master Jul 21, 2024
@kurudrive kurudrive deleted the fix/wp66/font-size-huge branch July 21, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant