Skip to content

Commit

Permalink
Merge pull request #845 from vektor-inc/fix/icon/compatible-style
Browse files Browse the repository at this point in the history
【確認待ち】アイコンブロックがキーカラーに対応する以前のクラスでも表示されるように対応
  • Loading branch information
kurudrive authored Oct 25, 2021
2 parents 5f5b47d + 6a0d5c5 commit 01c8dfe
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link:
Tags: Gutenberg,FAQ,alert
Requires at least: 5.7
Tested up to: 5.8.1
Stable tag: 1.16.8
Stable tag: 1.16.9
Requires PHP: 5.6.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -63,6 +63,9 @@ e.g.

== Changelog ==

= 1.16.9 =
[ Bug fix ][ icon ] Fix css bug from 1.16.0

= 1.16.8 =
[ Bug fix ][ Button ] cope with custom color palette

Expand Down
34 changes: 34 additions & 0 deletions src/blocks/icon/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,40 @@
color: #fff;
}
}

// old class before key-color START >>>
.vk_icon {
&_align {
&_center {
text-align: center;
}
&_right {
text-align: right;
}
}

&_border {
&_frame {
background-color: transparent;
border-width: 1px;
border-style: solid;
}
}
}

div:not(.is-style-outline):not(.is-style-noline) {
.vk_icon_border:not(.vk_icon_border_frame):not(.vk_icon_border_none) {
.vk_icon_font {
color: #fff;
}
}
}
// <<< END
}


.wp-block-vk-blocks-icon {

}

// デフォルトのカラー
Expand Down
2 changes: 1 addition & 1 deletion vk-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: VK Blocks Pro
* Plugin URI: https://github.com/vektor-inc/vk-blocks
* Description: This is a plugin that extends Gutenberg's blocks.
* Version: 1.16.8
* Version: 1.16.9
* Requires at least: 5.7
* Author: Vektor,Inc.
* Author URI: https://vektor-inc.co.jp
Expand Down

0 comments on commit 01c8dfe

Please sign in to comment.