@wordpress/base-styles 6.20.1-next.v.202604201441.0 → 8.0.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 +63 -0
- package/_z-index.scss +2 -89
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,69 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 8.0.0 (2026-05-14)
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
- Remove the following entries from the `z-index()` helper ([#77753](https://github.com/WordPress/gutenberg/pull/77753), [#77759](https://github.com/WordPress/gutenberg/pull/77759), [#77772](https://github.com/WordPress/gutenberg/pull/77772), [#77806](https://github.com/WordPress/gutenberg/pull/77806), [#77807](https://github.com/WordPress/gutenberg/pull/77807), [#77808](https://github.com/WordPress/gutenberg/pull/77808), [#78180](https://github.com/WordPress/gutenberg/pull/78180), [#78181](https://github.com/WordPress/gutenberg/pull/78181)):
|
|
10
|
+
- `.block-editor-block-manager__category-title`
|
|
11
|
+
- `.block-editor-block-manager__disabled-blocks-count`
|
|
12
|
+
- `.block-library-query-pattern__selection-search`
|
|
13
|
+
- `.block-library-template-part__selection-search`
|
|
14
|
+
- `.components-popover__close`
|
|
15
|
+
- `.edit-post-meta-boxes-area .spinner`
|
|
16
|
+
- `.edit-post-meta-boxes-area.is-loading::before`
|
|
17
|
+
- `.edit-site-layout__canvas-container.is-resizing::after`
|
|
18
|
+
- `.edit-site-layout__canvas-container`
|
|
19
|
+
- `.edit-site-layout__sidebar`
|
|
20
|
+
- `.edit-site-sidebar-navigation-screen__title-icon`
|
|
21
|
+
- `.edit-site-templates__dataviews-list-pagination`
|
|
22
|
+
- `.editor-post-template__swap-template-search`
|
|
23
|
+
- `.editor-start-page-options__modal__actions`
|
|
24
|
+
- `.editor-start-template-options__modal__actions`
|
|
25
|
+
- `.wp-block-cover__image-background`
|
|
26
|
+
- `.wp-block-cover__inner-container`
|
|
27
|
+
- `.wp-block-cover__video-background`
|
|
28
|
+
- `.wp-block-cover.has-background-dim::before`
|
|
29
|
+
- `.wp-block-cover.is-placeholder .components-placeholder.is-large`
|
|
30
|
+
|
|
31
|
+
## 7.0.0 (2026-04-29)
|
|
32
|
+
|
|
33
|
+
### Breaking Changes
|
|
34
|
+
|
|
35
|
+
- Remove the following entries from the `z-index()` helper ([#77619](https://github.com/WordPress/gutenberg/pull/77619), [#77620](https://github.com/WordPress/gutenberg/pull/77620), [#77621](https://github.com/WordPress/gutenberg/pull/77621), [#77714](https://github.com/WordPress/gutenberg/pull/77714), [#77715](https://github.com/WordPress/gutenberg/pull/77715), [#77717](https://github.com/WordPress/gutenberg/pull/77717), [#77774](https://github.com/WordPress/gutenberg/pull/77774)):
|
|
36
|
+
- `.block-editor-block-contextual-toolbar`
|
|
37
|
+
- `.block-editor-block-list__block {core/image aligned wide or fullwide}`
|
|
38
|
+
- `.block-editor-block-list__block::before`
|
|
39
|
+
- `.block-editor-block-list__block.has-block-overlay`
|
|
40
|
+
- `.block-editor-block-list__block .reusable-block-edit-panel *`
|
|
41
|
+
- `.block-editor-block-list__insertion-point`
|
|
42
|
+
- `.block-editor-block-switcher__arrow`
|
|
43
|
+
- `.block-editor-url-input__suggestions`
|
|
44
|
+
- `.block-editor-warning`
|
|
45
|
+
- `.block-library-classic__toolbar`
|
|
46
|
+
- `.components-autocomplete__results`
|
|
47
|
+
- `.components-button {:focus or .is-primary}`
|
|
48
|
+
- `.components-circular-option-picker__option-wrapper::before`
|
|
49
|
+
- `.components-circular-option-picker__option.is-pressed`
|
|
50
|
+
- `.components-circular-option-picker__option.is-pressed + svg`
|
|
51
|
+
- `.components-circular-option-picker__swatches`
|
|
52
|
+
- `> *:not(.components-circular-option-picker__swatches)`
|
|
53
|
+
- `.components-form-toggle__input`
|
|
54
|
+
- `.components-popover.block-editor-inspector-list-view-content-popover`
|
|
55
|
+
- `.components-popover.interface-more-menu__content`
|
|
56
|
+
- `.components-resizable-box__handle`
|
|
57
|
+
- `.components-resizable-box__side-handle`
|
|
58
|
+
- `.components-resizable-box__corner-handle`
|
|
59
|
+
- `.dataviews-action-modal__quick-edit`
|
|
60
|
+
- `.edit-site-editor__toggle-save-panel`
|
|
61
|
+
- `.edit-site-template-panel__replace-template-modal`
|
|
62
|
+
- `.edit-widgets-header`
|
|
63
|
+
- `.edit-widgets-sidebar {greater than small}`
|
|
64
|
+
- `.interface-complementary-area .components-panel`
|
|
65
|
+
- `.interface-complementary-area .components-panel__header`
|
|
66
|
+
- `.wp-block-template-part__placeholder-preview-filter-input`
|
|
67
|
+
|
|
5
68
|
## 6.20.0 (2026-04-15)
|
|
6
69
|
|
|
7
70
|
## 6.19.0 (2026-04-01)
|
package/_z-index.scss
CHANGED
|
@@ -5,43 +5,13 @@
|
|
|
5
5
|
// value is designed to work with).
|
|
6
6
|
|
|
7
7
|
$z-layers: (
|
|
8
|
-
".block-editor-block-list__block::before": 0,
|
|
9
8
|
".block-editor-block-list__block.is-selected": 20,
|
|
10
|
-
".block-editor-block-switcher__arrow": 1,
|
|
11
|
-
".block-editor-block-list__block {core/image aligned wide or fullwide}": 20,
|
|
12
|
-
".block-library-classic__toolbar": 31, // When scrolled to top this toolbar needs to sit over block-editor-block-toolbar
|
|
13
|
-
".components-form-toggle__input": 1,
|
|
14
9
|
".editor-text-editor__toolbar": 1,
|
|
15
10
|
|
|
16
|
-
// These next three share a stacking context
|
|
17
|
-
".block-library-template-part__selection-search": 2, // higher sticky element
|
|
18
|
-
".block-library-query-pattern__selection-search": 2, // higher sticky element
|
|
19
|
-
".editor-post-template__swap-template-search": 2, // higher sticky element
|
|
20
|
-
|
|
21
|
-
// These next two share a stacking context
|
|
22
|
-
".interface-complementary-area .components-panel" : 0, // lower scrolling content
|
|
23
|
-
".interface-complementary-area .components-panel__header": 1, // higher sticky element
|
|
24
|
-
|
|
25
11
|
".components-modal__header": 10,
|
|
26
|
-
".edit-post-meta-boxes-area.is-loading::before": 1,
|
|
27
|
-
".edit-post-meta-boxes-area .spinner": 5,
|
|
28
|
-
".components-popover__close": 5,
|
|
29
|
-
".block-editor-block-list__insertion-point": 6,
|
|
30
|
-
".block-editor-warning": 5,
|
|
31
|
-
".block-editor-url-input__suggestions": 30,
|
|
32
12
|
".edit-post-layout__footer": 30,
|
|
33
13
|
".interface-interface-skeleton__header": 30,
|
|
34
14
|
".interface-interface-skeleton__content": 20,
|
|
35
|
-
".edit-widgets-header": 30,
|
|
36
|
-
|
|
37
|
-
".wp-block-cover.is-placeholder .components-placeholder.is-large": 1, // Cover block resizer component inside a large placeholder.
|
|
38
|
-
// These z-index are now used only for a deprecated version of the cover block.
|
|
39
|
-
".wp-block-cover__inner-container": 1, // InnerBlocks area inside cover image block.
|
|
40
|
-
".wp-block-cover.has-background-dim::before": 1, // Overlay area inside block cover need to be higher than the video background.
|
|
41
|
-
".wp-block-cover__image-background": 0, // Image background inside cover block.
|
|
42
|
-
".wp-block-cover__video-background": 0, // Video background inside cover block.
|
|
43
|
-
|
|
44
|
-
".wp-block-template-part__placeholder-preview-filter-input": 1,
|
|
45
15
|
|
|
46
16
|
// Fixed position appender:
|
|
47
17
|
".block-editor-block-list__block .block-list-appender": 2,
|
|
@@ -50,14 +20,9 @@ $z-layers: (
|
|
|
50
20
|
".has-child .wp-block-navigation__submenu-container": 28,
|
|
51
21
|
".has-child:hover .wp-block-navigation__submenu-container": 29,
|
|
52
22
|
|
|
53
|
-
// Active pill button
|
|
54
|
-
".components-button {:focus or .is-primary}": 1,
|
|
55
|
-
|
|
56
23
|
// The draggable element should show up above the entire UI
|
|
57
24
|
".components-draggable__clone": 1000000000,
|
|
58
25
|
|
|
59
|
-
".block-editor-block-list__block .reusable-block-edit-panel *": 1,
|
|
60
|
-
|
|
61
26
|
// Show drop zone above most standard content, but below any overlays
|
|
62
27
|
".components-drop-zone": 40,
|
|
63
28
|
".components-drop-zone__content": 50,
|
|
@@ -73,12 +38,6 @@ $z-layers: (
|
|
|
73
38
|
// Below the media library backdrop (.media-modal-backdrop), which has a z-index of 159900.
|
|
74
39
|
".block-editor-global-styles-background-panel__popover": 159900 - 10,
|
|
75
40
|
|
|
76
|
-
// The toolbar, when contextual, should be above any adjacent nested block click overlays.
|
|
77
|
-
".block-editor-block-contextual-toolbar": 61,
|
|
78
|
-
|
|
79
|
-
// Ensures content overlay appears higher than resize containers used for image/video/etc.
|
|
80
|
-
".block-editor-block-list__block.has-block-overlay": 10,
|
|
81
|
-
|
|
82
41
|
// Query block setup state.
|
|
83
42
|
".block-editor-block-pattern-setup .pattern-slide": 100,
|
|
84
43
|
".block-editor-block-pattern-setup .{next,previous}-slide": 101,
|
|
@@ -94,14 +53,9 @@ $z-layers: (
|
|
|
94
53
|
// the Publish Post sidebar.
|
|
95
54
|
".editor-post-publish-panel {greater than small}": 99998,
|
|
96
55
|
|
|
97
|
-
// For larger views, the wp-admin navbar dropdown should be on top of
|
|
98
|
-
// the multi-entity saving sidebar.
|
|
99
|
-
".edit-site-editor__toggle-save-panel": 100000,
|
|
100
|
-
|
|
101
56
|
// Show sidebar in greater than small viewports above editor related elements
|
|
102
57
|
// but below #adminmenuback { z-index: 100 }
|
|
103
58
|
".interface-interface-skeleton__sidebar {greater than small}": 90,
|
|
104
|
-
".edit-widgets-sidebar {greater than small}": 90,
|
|
105
59
|
|
|
106
60
|
// Show interface skeleton footer above interface skeleton drawer
|
|
107
61
|
".interface-interface-skeleton__footer": 90,
|
|
@@ -136,26 +90,23 @@ $z-layers: (
|
|
|
136
90
|
".editor-action-modal": 1000001,
|
|
137
91
|
".editor-post-template__swap-template-modal": 1000001,
|
|
138
92
|
".editor-post-template__create-template-modal": 1000001,
|
|
139
|
-
".edit-site-template-panel__replace-template-modal": 1000001,
|
|
140
93
|
".editor-sync-connection-error-modal": 1000001,
|
|
94
|
+
".components-snackbar-list.media-editor-modal__snackbar": 1000001,
|
|
141
95
|
|
|
142
96
|
// Note: The ConfirmDialog component's z-index is being set to 1000001 in packages/components/src/confirm-dialog/styles.ts
|
|
143
97
|
// because it uses emotion and not sass. We need it to render on top its parent popover.
|
|
144
98
|
|
|
145
99
|
// Show media replace flow and similar popovers beneath the media modal when its open.
|
|
146
100
|
".components-popover.block-editor-media-replace-flow__options": 99999,
|
|
147
|
-
".components-popover.block-
|
|
101
|
+
".components-popover.block-library-video-tracks-editor": 99999,
|
|
148
102
|
|
|
149
103
|
// ...Except for popovers immediately beneath wp-admin menu on large breakpoints
|
|
150
104
|
".components-popover.block-editor-inserter__popover": 99999,
|
|
151
105
|
".components-popover.table-of-contents__popover": 99998,
|
|
152
|
-
".components-popover.interface-more-menu__content": 99998,
|
|
153
106
|
".components-popover.more-menu__content": 99998,
|
|
154
107
|
".components-popover.block-editor-rich-text__inline-format-toolbar": 99998,
|
|
155
108
|
".components-popover.block-editor-warning__dropdown": 99998,
|
|
156
109
|
|
|
157
|
-
".components-autocomplete__results": 1000000,
|
|
158
|
-
|
|
159
110
|
".skip-to-selected-block": 100000,
|
|
160
111
|
".interface-interface-skeleton__actions": 100000,
|
|
161
112
|
".edit-site-layout__actions": 100000,
|
|
@@ -169,46 +120,12 @@ $z-layers: (
|
|
|
169
120
|
// Show tooltips above NUX tips, wp-admin menus, submenus, and sidebar:
|
|
170
121
|
".components-tooltip": 1000002,
|
|
171
122
|
|
|
172
|
-
// Make sure corner handles are above side handles for ResizableBox component
|
|
173
|
-
".components-resizable-box__handle": 2,
|
|
174
|
-
".components-resizable-box__side-handle": 2,
|
|
175
|
-
".components-resizable-box__corner-handle": 2,
|
|
176
|
-
|
|
177
|
-
// Make sure block manager sticky category titles appear above the options
|
|
178
|
-
".block-editor-block-manager__category-title": 1,
|
|
179
|
-
// And block manager sticky disabled block count is higher still
|
|
180
|
-
".block-editor-block-manager__disabled-blocks-count": 2,
|
|
181
|
-
|
|
182
|
-
// Needs to appear below other color circular picker related UI elements.
|
|
183
|
-
".components-circular-option-picker__option-wrapper::before": -1,
|
|
184
|
-
|
|
185
|
-
".components-circular-option-picker__option.is-pressed": 1,
|
|
186
|
-
// Needs to be higher than .components-circular-option-picker__option.is-pressed.
|
|
187
|
-
".components-circular-option-picker__option.is-pressed + svg": 2,
|
|
188
|
-
|
|
189
|
-
// The following two indexes are needed so that the swatches (and their tooltips)
|
|
190
|
-
// always render on top of the rest of the component's UI.
|
|
191
|
-
".components-circular-option-picker__swatches": 1,
|
|
192
|
-
"> *:not(.components-circular-option-picker__swatches)": 0,
|
|
193
|
-
|
|
194
123
|
// Appear under the customizer heading UI, but over anything else.
|
|
195
124
|
".customize-widgets__topbar": 8,
|
|
196
125
|
|
|
197
126
|
// Appear under the topbar.
|
|
198
127
|
".customize-widgets__block-toolbar": 7,
|
|
199
128
|
|
|
200
|
-
// Site editor layout
|
|
201
|
-
".edit-site-templates__dataviews-list-pagination": 2,
|
|
202
|
-
".edit-site-layout__canvas-container": 2,
|
|
203
|
-
".edit-site-layout__sidebar": 1,
|
|
204
|
-
".edit-site-layout__canvas-container.is-resizing::after": 100,
|
|
205
|
-
// Title needs to appear above other UI the section content.
|
|
206
|
-
".edit-site-sidebar-navigation-screen__title-icon": 1,
|
|
207
|
-
|
|
208
|
-
// Ensure modal footer actions appear above modal contents
|
|
209
|
-
".editor-start-template-options__modal__actions": 1,
|
|
210
|
-
".editor-start-page-options__modal__actions": 1,
|
|
211
|
-
|
|
212
129
|
// Ensure checkbox + actions don't overlap table header
|
|
213
130
|
".dataviews-view-table thead": 1,
|
|
214
131
|
|
|
@@ -220,10 +137,6 @@ $z-layers: (
|
|
|
220
137
|
|
|
221
138
|
// Needs to be below media library (.media-model) that has a z-index of 160000.
|
|
222
139
|
".components-popover.components-dropdown__content.dataforms-layouts-panel__field-dropdown": 160000 - 10,
|
|
223
|
-
|
|
224
|
-
// Needs to be below the media library (.media-modal) that has a z-index of 160000.
|
|
225
|
-
// And the new experimental media modal that has a z-index of 100000.
|
|
226
|
-
".dataviews-action-modal__quick-edit": 100000 - 10,
|
|
227
140
|
);
|
|
228
141
|
|
|
229
142
|
@function z-index( $key ) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/base-styles",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.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",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "51264e33b95fadff9a06b68141e674ce9cde9675"
|
|
49
49
|
}
|