Skip to content

Commit 75cee0b

Browse files
Editor: Update of npm packages after 6.4 RC3.
This update includes the following fixes reported after RC3: * Regression: [WordPress/gutenberg#55858 Fixes patterns not working anymore as a post template for custom post types]. Scenario: When creating a new post for any custom post type registered with its "template" argument set to a pattern. For this scenario, the pattern template no longer renders in the post editor or the frontend with 6.4, whereas it did render properly in 6.3.2. This package update resolves the console error raised: {{{ Uncaught TypeError: select(...).getCurrentTheme() is undefined }}} which restores the rendering of the pattern template. * Regression: [WordPress/gutenberg#55859 Fixes positioning and styles for the new lightbox's trigger] introduced in 6.4. Follow up to [57048], [57034], [56987], [56961], [56849], [56818], [56816]. Props renathoc, rajinsharwar, richtabor, joen, mikachan, hellofromTonya. Fixes #59411. Built from https://develop.svn.wordpress.org/trunk@57063 git-svn-id: https://core.svn.wordpress.org/trunk@56574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent c1ddf19 commit 75cee0b

24 files changed

+177
-151
lines changed

wp-includes/assets/script-loader-packages.min.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

wp-includes/assets/script-loader-packages.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

wp-includes/blocks/image.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,9 @@ class="lightbox-trigger"
242242
data-wp-on--click="actions.core.image.showLightbox"
243243
data-wp-style--right="context.core.image.imageButtonRight"
244244
data-wp-style--top="context.core.image.imageButtonTop"
245-
style="background: #000"
246245
>
247-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true" focusable="false">
248-
<Path stroke="#FFFFFF" d="M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z" />
246+
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
247+
<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
249248
</svg>
250249
</button>';
251250

@@ -303,7 +302,7 @@ class="lightbox-trigger"
303302
}
304303
}
305304

306-
$close_button_icon = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="15" height="15" aria-hidden="true" focusable="false"><path d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"></path></svg>';
305+
$close_button_icon = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><path d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"></path></svg>';
307306
$close_button_label = esc_attr__( 'Close' );
308307

309308
$lightbox_html = <<<HTML

wp-includes/blocks/image/style-rtl.css

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,30 @@
104104
opacity:1;
105105
}
106106
.wp-lightbox-container button{
107-
background:#000;
107+
align-items:center;
108+
-webkit-backdrop-filter:blur(16px) saturate(180%);
109+
backdrop-filter:blur(16px) saturate(180%);
110+
background-color:rgba(90,90,90,.25);
108111
border:none;
109-
border-radius:10%;
112+
border-radius:4px;
110113
cursor:zoom-in;
111-
height:24px;
112-
left:10px;
114+
display:flex;
115+
height:20px;
116+
justify-content:center;
117+
left:16px;
113118
opacity:0;
114119
padding:0;
115120
position:absolute;
116121
text-align:center;
117-
top:10px;
118-
width:24px;
122+
top:16px;
123+
transition:opacity .2s ease;
124+
width:20px;
119125
z-index:100;
120126
}
121127
.wp-lightbox-container button:focus-visible{
122-
outline:5px auto #212121;
123-
outline:5px auto -webkit-focus-ring-color;
124-
outline-offset:5px;
128+
outline:3px auto rgba(90,90,90,.25);
129+
outline:3px auto -webkit-focus-ring-color;
130+
outline-offset:3px;
125131
}
126132
.wp-lightbox-container button:hover{
127133
cursor:pointer;
@@ -131,7 +137,7 @@
131137
opacity:1;
132138
}
133139
.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){
134-
background:#000;
140+
background-color:rgba(90,90,90,.25);
135141
border:none;
136142
}
137143

wp-includes/blocks/image/style-rtl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wp-includes/blocks/image/style.css

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,30 @@
104104
opacity:1;
105105
}
106106
.wp-lightbox-container button{
107-
background:#000;
107+
align-items:center;
108+
-webkit-backdrop-filter:blur(16px) saturate(180%);
109+
backdrop-filter:blur(16px) saturate(180%);
110+
background-color:rgba(90,90,90,.25);
108111
border:none;
109-
border-radius:10%;
112+
border-radius:4px;
110113
cursor:zoom-in;
111-
height:24px;
114+
display:flex;
115+
height:20px;
116+
justify-content:center;
112117
opacity:0;
113118
padding:0;
114119
position:absolute;
115-
right:10px;
120+
right:16px;
116121
text-align:center;
117-
top:10px;
118-
width:24px;
122+
top:16px;
123+
transition:opacity .2s ease;
124+
width:20px;
119125
z-index:100;
120126
}
121127
.wp-lightbox-container button:focus-visible{
122-
outline:5px auto #212121;
123-
outline:5px auto -webkit-focus-ring-color;
124-
outline-offset:5px;
128+
outline:3px auto rgba(90,90,90,.25);
129+
outline:3px auto -webkit-focus-ring-color;
130+
outline-offset:3px;
125131
}
126132
.wp-lightbox-container button:hover{
127133
cursor:pointer;
@@ -131,7 +137,7 @@
131137
opacity:1;
132138
}
133139
.wp-lightbox-container button:focus,.wp-lightbox-container button:hover,.wp-lightbox-container button:not(:hover):not(:active):not(.has-background){
134-
background:#000;
140+
background-color:rgba(90,90,90,.25);
135141
border:none;
136142
}
137143

0 commit comments

Comments
 (0)