@wordpress/components 29.5.1 → 29.5.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ### Bug Fixes
6
+
7
+ - `Button`: Fix tertiary variant displaying incorrect text color in pressed and hover states ([#68542](https://github.com/WordPress/gutenberg/pull/68542)).
8
+
5
9
  ### Enhancement
6
10
 
7
11
  - `QueryControls`: Add menu_order sorting option if supported by the post type. ([#68781](https://github.com/WordPress/gutenberg/pull/68781)).
@@ -396,7 +396,7 @@
396
396
  color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
397
397
  background: transparent;
398
398
  }
399
- .components-button.is-tertiary:hover:not(:disabled, [aria-disabled=true]) {
399
+ .components-button.is-tertiary:hover:not(:disabled, [aria-disabled=true], .is-pressed) {
400
400
  background: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 4%, transparent);
401
401
  color: var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6));
402
402
  }
@@ -396,7 +396,7 @@
396
396
  color: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
397
397
  background: transparent;
398
398
  }
399
- .components-button.is-tertiary:hover:not(:disabled, [aria-disabled=true]) {
399
+ .components-button.is-tertiary:hover:not(:disabled, [aria-disabled=true], .is-pressed) {
400
400
  background: color-mix(in srgb, var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)) 4%, transparent);
401
401
  color: var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6));
402
402
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/components",
3
- "version": "29.5.1",
3
+ "version": "29.5.2",
4
4
  "description": "UI components for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "6f49fee89f840761f7fedf662713cbd4a71723e9"
88
+ "gitHead": "0750912b313e3e488ec2cad0c084e548cedd6b95"
89
89
  }
@@ -167,7 +167,7 @@
167
167
  color: $components-color-accent;
168
168
  background: transparent;
169
169
 
170
- &:hover:not(:disabled, [aria-disabled="true"]) {
170
+ &:hover:not(:disabled, [aria-disabled="true"], .is-pressed) {
171
171
  background: color-mix(in srgb, $components-color-accent 4%, transparent);
172
172
  color: $components-color-accent-darker-20;
173
173
  }