Skip to content
Open
Changes from all commits
Commits
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
8 changes: 7 additions & 1 deletion packages/block-editor/src/hooks/typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,17 @@ export function TypographyPanel( { clientId, name, setAttributes, settings } ) {
return null;
}

const defaultControls = getBlockSupport( name, [
const blockDefaultControls = getBlockSupport( name, [
TYPOGRAPHY_SUPPORT_KEY,
'__experimentalDefaultControls',
] );

// Ensure fontFamily is shown by default for blocks that support it,
// unless the block explicitly opts out by setting fontFamily: false.
const defaultControls = blockDefaultControls
? { fontFamily: true, ...blockDefaultControls }
: undefined;

return (
<StylesTypographyPanel
as={ TypographyInspectorControl }
Expand Down
Loading