Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
442a9c7
Link to widgets.php instead of themes.php?page=gutenberg-widgets (#32…
noisysocks May 31, 2021
9afce78
Fix legacy widget block preview iframe in plugin (#32300)
noisysocks Jun 1, 2021
9efe447
Generate classes from preset slugs in the same way (server & client) …
nosolosw Jun 1, 2021
bde39f7
Widgets editor: Fix error when saving empty Legacy Widget block (#32359)
noisysocks Jun 1, 2021
cde3a5a
Update the appearance of the template details popover (#32042)
jameskoster Jun 1, 2021
29c3626
Fix deselecting block when inspector is opened (#32361)
kevin940726 Jun 2, 2021
4af1b88
Display wide widgets as popovers in Customizer (#31736)
tellthemachines Jun 2, 2021
7bb8d1d
Prevent saving the post before previewing in locked/read-only mode. (…
desaiuditd Jun 2, 2021
e4e4a62
Fix allowed patterns check (#32376)
youknowriad Jun 2, 2021
1029bcb
SuggestionsList: Try to use a unique "key" (#32344)
Mamaduka Jun 2, 2021
0b4b117
Buttons: move options to constants to avoid unneeded renders (#32356)
gwwar Jun 1, 2021
14d4ba6
Try: Fix notices below block toolbars. (#32238)
jasmussen Jun 2, 2021
ab6be5d
Allow non-latin characters in slugs (#32232)
aristath Jun 2, 2021
4bbea09
Experimental Layout: pass the same object when no data changes (#32380)
gwwar Jun 2, 2021
bbc0041
Fixed random collapse of the color settings section (#32388)
thisissandip Jun 3, 2021
b9d9d71
Fix the layout definition in the template mode (#32425)
youknowriad Jun 3, 2021
ebfe9f7
Group typographic block supports under a `typography` key (#32252)
jorgefilipecosta Jun 2, 2021
fcf8da8
Fix site-logo not getting removed on remove_theme_mod (#32370)
aristath Jun 4, 2021
7fbf2b4
Make syntax errors in `theme.json` visible to users (#32404)
nosolosw Jun 4, 2021
3ada871
Update: Skip typography serialization (#32444)
jorgefilipecosta Jun 4, 2021
b978190
Fix alligned blocks (#32454)
youknowriad Jun 7, 2021
09339db
Letter spacing should also respect skip serialization flag (#32459)
nosolosw Jun 4, 2021
61ce1f4
Fix block toolbar overlap with header (#32424)
Mamaduka Jun 3, 2021
476b88f
Fixed loss of list content when switching list types. (#32432)
torounit Jun 7, 2021
9117c0c
Avoid keeping the same client ID when transforming blocks (#32453)
youknowriad Jun 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed random collapse of the color settings section (#32388)
  • Loading branch information
thisissandip authored and youknowriad committed Jun 7, 2021
commit bbc0041d5bb4d9b97cafcdf5c52e989ea371ecc7
28 changes: 16 additions & 12 deletions packages/block-editor/src/hooks/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ export const withBlockControls = createHigherOrderComponent(
const withElementsStyles = createHigherOrderComponent(
( BlockListBlock ) => ( props ) => {
const elements = props.attributes.style?.elements;
if ( ! elements ) {
return <BlockListBlock { ...props } />;
}

const blockElementsContainerIdentifier = `wp-elements-${ useInstanceId(
BlockListBlock
) }`;
Expand All @@ -256,17 +254,23 @@ const withElementsStyles = createHigherOrderComponent(

return (
<>
<style
dangerouslySetInnerHTML={ {
__html: styles,
} }
/>
{ elements && (
<style
dangerouslySetInnerHTML={ {
__html: styles,
} }
/>
) }

<BlockListBlock
{ ...props }
className={ classnames(
props.classname,
blockElementsContainerIdentifier
) }
className={
elements &&
classnames(
props.classname,
blockElementsContainerIdentifier
)
}
/>
</>
);
Expand Down