playbook_ui 16.6.0.pre.alpha.PLAY2927squareicons15991 → 16.6.0.pre.alpha.PLAY2927squareicons16002

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92b56a0ef7f60bd56ddc1eb30758013dd9cc676479d907176395b2d73e668191
4
- data.tar.gz: 2a1e67ad3bfc36adf61187c09c8bedea8118b7237aec9f345867617d6e1e2b6d
3
+ metadata.gz: 4802f793bf5b984227eb50e9f78cfa5fd43a1f513fae0ef966984580b029d387
4
+ data.tar.gz: c7bffcd8b54ac4c7fdea6a444ee1b247c1c2da801da128803a11453cd88ea5b4
5
5
  SHA512:
6
- metadata.gz: 907276831a6bf4d98eabf5f7004f05e385dce8f3aac36cac0218a9a4bd06749669ca859bd1aab4712c3dd7a85f05fc897f6316208c5d48f3a2ae2dd1a4a4ee41
7
- data.tar.gz: 18fa54ca88e50d89b0b6cb2ef9f39ec3a058b4cfcc97755f1bdcf8b31d1a97ed7dabd1799a77d35cd17e8097be4ffd09677cbdf25fe3c1cbcf574139d0c8ac33
6
+ metadata.gz: 716c8edbdbf1bc3fb798486d14494cf3ba73b66af98c78f93cccfaf34b79ed4ccbe319a31e55631a02fe688fd02c18f2f3986ee72b3f20a8cbdbfe72728c076e
7
+ data.tar.gz: 23be4dd5e7e9bddf3dabb31f9d54ee9f5913829939263d8e11eb340d6cf667086e5c13b666bd6f4c256743dc193dbe5da212a48335f3e58bddc14a63785ea4ce
@@ -73,8 +73,10 @@ module Playbook
73
73
  emoji_regex.match?(icon)
74
74
  end
75
75
 
76
+ # Icon-only = icon with no label. Label may come from `text` or from a block (e.g. CopyButton);
77
+ # block content must not be treated as icon-only when `text` is unset.
76
78
  def icon_only?
77
- icon.present? && text.blank? && variant != "reaction"
79
+ icon.present? && text.blank? && children.blank? && variant != "reaction"
78
80
  end
79
81
 
80
82
  def classname
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "16.6.0"
5
- VERSION = "16.6.0.pre.alpha.PLAY2927squareicons15991"
5
+ VERSION = "16.6.0.pre.alpha.PLAY2927squareicons16002"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.6.0.pre.alpha.PLAY2927squareicons15991
4
+ version: 16.6.0.pre.alpha.PLAY2927squareicons16002
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX