@wordpress/base-styles 4.23.0 → 4.24.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,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.24.0 (2023-05-10)
6
+
5
7
  ## 4.23.0 (2023-04-26)
6
8
 
7
9
  ## 4.22.0 (2023-04-12)
package/_mixins.scss CHANGED
@@ -76,12 +76,28 @@
76
76
 
77
77
  @mixin input-style__focus() {
78
78
  border-color: var(--wp-admin-theme-color);
79
- box-shadow: 0 0 0 ($border-width-focus - $border-width) var(--wp-admin-theme-color);
79
+ box-shadow: 0 0 0 ($border-width-focus-fallback - $border-width) var(--wp-admin-theme-color);
80
80
 
81
81
  // Windows High Contrast mode will show this outline, but not the box-shadow.
82
82
  outline: 2px solid transparent;
83
83
  }
84
84
 
85
+ @mixin button-style__focus() {
86
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
87
+
88
+ // Windows High Contrast mode will show this outline, but not the box-shadow.
89
+ outline: 2px solid transparent;
90
+ }
91
+
92
+
93
+ @mixin button-style-outset__focus($focus-color) {
94
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) $white, 0 0 0 calc(2 * var(--wp-admin-border-width-focus)) $focus-color;
95
+
96
+ // Windows High Contrast mode will show this outline, but not the box-shadow.
97
+ outline: 2px solid transparent;
98
+ outline-offset: 2px;
99
+ }
100
+
85
101
 
86
102
  /**
87
103
  * Applies editor left position to the selector passed as argument
@@ -224,7 +240,7 @@
224
240
  border-radius: $radius-block-ui;
225
241
 
226
242
  &:focus {
227
- box-shadow: 0 0 0 ($border-width * 2) $white, 0 0 0 ($border-width * 2 + $border-width-focus) var(--wp-admin-theme-color);
243
+ box-shadow: 0 0 0 ($border-width * 2) $white, 0 0 0 ($border-width * 2 + $border-width-focus-fallback) var(--wp-admin-theme-color);
228
244
 
229
245
  // Only visible in Windows High Contrast mode.
230
246
  outline: 2px solid transparent;
@@ -308,7 +324,7 @@
308
324
  }
309
325
 
310
326
  &:focus {
311
- box-shadow: 0 0 0 ($border-width * 2) $white, 0 0 0 ($border-width * 2 + $border-width-focus) var(--wp-admin-theme-color);
327
+ box-shadow: 0 0 0 ($border-width * 2) $white, 0 0 0 ($border-width * 2 + $border-width-focus-fallback) var(--wp-admin-theme-color);
312
328
 
313
329
  // Only visible in Windows High Contrast mode.
314
330
  outline: 2px solid transparent;
@@ -353,7 +369,7 @@
353
369
 
354
370
  &:focus {
355
371
  border-color: var(--wp-admin-theme-color) !important;
356
- box-shadow: 0 0 0 ($border-width-focus - $border-width) var(--wp-admin-theme-color) !important;
372
+ box-shadow: 0 0 0 ($border-width-focus-fallback - $border-width) var(--wp-admin-theme-color) !important;
357
373
 
358
374
  // Windows High Contrast mode will show this outline, but not the box-shadow.
359
375
  outline: 2px solid transparent !important;
package/_variables.scss CHANGED
@@ -46,6 +46,7 @@ $grid-unit-80: 8 * $grid-unit; // 64px
46
46
 
47
47
  $icon-size: 24px;
48
48
  $button-size: 36px;
49
+ $button-size-next-default-40px: 40px; // transitionary variable for next default button size
49
50
  $button-size-small: 24px;
50
51
  $header-height: 60px;
51
52
  $panel-header-height: $grid-unit-60;
@@ -83,7 +84,7 @@ $widget-area-width: 700px;
83
84
 
84
85
  $block-toolbar-height: $grid-unit-60;
85
86
  $border-width: 1px;
86
- $border-width-focus: 2px; // This exists as a fallback, and is ideally overridden by var(--wp-admin-border-width-focus) unless in some SASS math cases.
87
+ $border-width-focus-fallback: 2px; // This exists as a fallback, and is ideally overridden by var(--wp-admin-border-width-focus) unless in some SASS math cases.
87
88
  $border-width-tab: 1.5px;
88
89
  $helptext-font-size: 12px;
89
90
  $radius-round: 50%;
package/_z-index.scss CHANGED
@@ -189,6 +189,9 @@ $z-layers: (
189
189
  ".edit-site-layout__canvas-container.is-resizing::after": 100,
190
190
  // Title needs to appear above other UI the section content.
191
191
  ".edit-site-sidebar-navigation-screen__title-icon": 1,
192
+
193
+ // Ensure modal footer actions appear above modal contents
194
+ ".edit-site-start-template-options__modal__actions": 1,
192
195
  );
193
196
 
194
197
  @function z-index( $key ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/base-styles",
3
- "version": "4.23.0",
3
+ "version": "4.24.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",
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "gitHead": "6df0c62d43b8901414ccd22ffbe56eaa99d012a6"
26
+ "gitHead": "e936127e1e13881f1a940b7bd1593a9e500147f3"
27
27
  }