We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
WordPress 6.1より画像ブロックなどでボーダー ブロックのサポートされた 上下左右異なるカラーを設定できる WordPress/gutenberg#31366
テーマはTT2などのブロックテーマ
レンダリングされるHTML
<figure class="wp-block-image size-large has-custom-border"> <img decoding="async" src="https://www.vektor-inc.co.jp/wp-content/uploads/2020/08/vk-blocks-logo_og.png" alt="" style="border-top-color:var(--wp--preset--color--vivid-red);border-top-width:20px;border-right-color:var(--wp--preset--color--luminous-vivid-orange);border-right-width:20px;border-bottom-color:var(--wp--preset--color--vk-color-custom-3);border-bottom-width:20px;border-left-color:var(--wp--preset--color--vivid-cyan-blue);border-left-width:20px"> </figure>
インラインスタイルでborder-right-color:var(--wp--preset--color--$slug)を追加してそれぞれの色を指定している
border-right-color:var(--wp--preset--color--$slug)
現状のカラーパレットマネージャーで出力されるCSS変数はスラッグ名のみ(例--vk-color-custom-1)なので--wp--preset--color--$slugが必要です https://github.com/vektor-inc/vk-color-palette-manager/blob/e93a74ae178338b6f190457fed91f0158a6d2461/src/VkColorPaletteManager.php
--vk-color-custom-1
--wp--preset--color--$slug
--vk-color-primary、--vk-color-custom-1などのcss変数を--wp--preset--color--$slugに変更する
src/blocks/button/style.scss
vk-blocks-pro/src/blocks/button/style.scss
Lines 248 to 269 in e15add7
src/utils/common.scss リストブロックWP6.1用のカスタムカラー変数に変更 #1483
vk-blocks-pro/src/utils/common.scss
Lines 131 to 138 in 83ca6b6
editor-css/_editor_before_button.scss https://github.com/vektor-inc/vk-blocks-pro/blob/e15add774f6afa6500816f4b170aaafb68075bbe/editor-css/_editor_before_button.scss 【2人目確認待ち】ボタン WP6.1用のカスタムカラー変数に修正 #1484
The text was updated successfully, but these errors were encountered:
VK Blocks側では vektor-inc/vk-color-palette-manager#15 がリリースされた後に--vk-color-custom-1などのcss変数を--wp--preset--color--に変更する
--wp--preset--color--
Sorry, something went wrong.
各種対応が終わったと思うのでcloseします
No branches or pull requests
WordPress 6.1より画像ブロックなどでボーダー ブロックのサポートされた
上下左右異なるカラーを設定できる
WordPress/gutenberg#31366
Screen.Recording.2022-07-15.at.11.31.52.am.mp4
テーマはTT2などのブロックテーマ
レンダリングされるHTML
インラインスタイルで
border-right-color:var(--wp--preset--color--$slug)
を追加してそれぞれの色を指定している現状のカラーパレットマネージャーで出力されるCSS変数はスラッグ名のみ(例
--vk-color-custom-1
)なので--wp--preset--color--$slug
が必要ですhttps://github.com/vektor-inc/vk-color-palette-manager/blob/e93a74ae178338b6f190457fed91f0158a6d2461/src/VkColorPaletteManager.php
--vk-color-primary、--vk-color-custom-1などのcss変数を--wp--preset--color--$slugに変更する
src/blocks/button/style.scss
vk-blocks-pro/src/blocks/button/style.scss
Lines 248 to 269 in e15add7
【2人目確認待ち】ボタン WP6.1用のカスタムカラー変数に修正 #1484
src/utils/common.scss
リストブロックWP6.1用のカスタムカラー変数に変更 #1483
vk-blocks-pro/src/utils/common.scss
Lines 131 to 138 in 83ca6b6
editor-css/_editor_before_button.scss
https://github.com/vektor-inc/vk-blocks-pro/blob/e15add774f6afa6500816f4b170aaafb68075bbe/editor-css/_editor_before_button.scss
【2人目確認待ち】ボタン WP6.1用のカスタムカラー変数に修正 #1484
The text was updated successfully, but these errors were encountered: