Skip to content

Commit

Permalink
Some more rearranging
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Apr 26, 2021
1 parent c3c804a commit 581bb3f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/block-editor/src/hooks/font-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,20 @@ const withFontSizeInlineStyles = createHigherOrderComponent(
return <BlockListBlock { ...props } />;
}

const newProps = { ...props };

const fontSizeValue = getFontSize(
fontSizes,
fontSize,
style?.typography?.fontSize
).size;

newProps.wrapperProps = {
...wrapperProps,
style: {
fontSize: fontSizeValue,
...wrapperProps?.style,
const newProps = {
...props,
wrapperProps: {
...wrapperProps,
style: {
fontSize: fontSizeValue,
...wrapperProps?.style,
},
},
};

Expand Down

0 comments on commit 581bb3f

Please sign in to comment.