@wordpress/base-styles 5.20.0 → 5.22.0

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
+ ## 5.22.0 (2025-04-11)
6
+
7
+ ## 5.21.0 (2025-03-27)
8
+
5
9
  ## 5.20.0 (2025-03-13)
6
10
 
7
11
  ## 5.19.0 (2025-02-28)
package/_mixins.scss CHANGED
@@ -151,10 +151,10 @@
151
151
  }
152
152
 
153
153
 
154
- @mixin input-style__focus() {
155
- border-color: var(--wp-admin-theme-color);
154
+ @mixin input-style__focus($accent-color: var(--wp-admin-theme-color)) {
155
+ border-color: $accent-color;
156
156
  // Expand the default border focus style by .5px to be a total of 1.5px.
157
- box-shadow: 0 0 0 0.5px var(--wp-admin-theme-color);
157
+ box-shadow: 0 0 0 0.5px $accent-color;
158
158
  // Windows High Contrast mode will show this outline, but not the box-shadow.
159
159
  outline: 2px solid transparent;
160
160
  }
@@ -259,7 +259,7 @@
259
259
  }
260
260
  }
261
261
 
262
- @mixin input-control {
262
+ @mixin input-control($accent-color: var(--wp-admin-theme-color)) {
263
263
  font-family: $default-font;
264
264
  padding: 6px 8px;
265
265
  @include input-style__neutral();
@@ -275,7 +275,7 @@
275
275
  }
276
276
 
277
277
  &:focus {
278
- @include input-style__focus();
278
+ @include input-style__focus($accent-color);
279
279
  }
280
280
 
281
281
  // Use opacity to work in various editor styles.
package/_z-index.scss CHANGED
@@ -130,6 +130,7 @@ $z-layers: (
130
130
  ".dataviews-action-modal": 1000001,
131
131
  ".editor-action-modal": 1000001,
132
132
  ".editor-post-template__swap-template-modal": 1000001,
133
+ ".editor-post-template__create-template-modal": 1000001,
133
134
  ".edit-site-template-panel__replace-template-modal": 1000001,
134
135
  ".fields-controls__template-modal": 1000001,
135
136
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/base-styles",
3
- "version": "5.20.0",
3
+ "version": "5.22.0",
4
4
  "description": "Base SCSS utilities and variables for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "72476970386146d450c375e5c71a96dda7c9aaa8"
30
+ "gitHead": "01a314d7e46a50101e328fdb11959c441e49372d"
31
31
  }