@wordpress/base-styles 5.21.0 → 5.23.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.23.0 (2025-05-07)
6
+
7
+ ## 5.22.0 (2025-04-11)
8
+
5
9
  ## 5.21.0 (2025-03-27)
6
10
 
7
11
  ## 5.20.0 (2025-03-13)
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
@@ -14,6 +14,7 @@ $z-layers: (
14
14
  // These next three share a stacking context
15
15
  ".block-library-template-part__selection-search": 2, // higher sticky element
16
16
  ".block-library-query-pattern__selection-search": 2, // higher sticky element
17
+ ".editor-post-template__swap-template-search": 2, // higher sticky element
17
18
 
18
19
  // These next two share a stacking context
19
20
  ".interface-complementary-area .components-panel" : 0, // lower scrolling content
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/base-styles",
3
- "version": "5.21.0",
3
+ "version": "5.23.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": "104af00f9abcd7a4d36b87e648f148c72cc4ea5f"
30
+ "gitHead": "ab5c79cd40adbb68898536c50e035b0a734338ea"
31
31
  }