Skip to content

Commit

Permalink
Rename variables
Browse files Browse the repository at this point in the history
Adding missing textTransform property for typography
  • Loading branch information
ramonjd committed Feb 23, 2022
1 parent b1b0c69 commit 64f5992
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/hooks/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,15 +631,15 @@ export function getDefaultColorControls( blockType ) {
'__experimentalDefaultControls',
] );

if ( defaultBorderControls === 'all' ) {
if ( defaultColorControls === 'all' ) {
return {
text: true,
background: true,
link: true,
};
}

return defaultBorderControls;
return defaultColorControls;
}

const MIGRATION_PATHS = {
Expand Down
4 changes: 2 additions & 2 deletions packages/block-editor/src/hooks/dimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,13 @@ export function getDefaultDimensionsControls( blockType ) {
'__experimentalDefaultControls',
] );

if ( defaultBorderControls === 'all' ) {
if ( defaultDimensionsControls === 'all' ) {
return {
padding: true,
margin: true,
blockGap: true,
};
}

return defaultBorderControls;
return defaultDimensionsControls;
}
5 changes: 3 additions & 2 deletions packages/block-editor/src/hooks/typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,16 +262,17 @@ export function getDefaultTypographyControls( blockType ) {
'__experimentalDefaultControls',
] );

if ( defaultBorderControls === 'all' ) {
if ( defaultTypographyControls === 'all' ) {
return {
fontFamily: true,
fontSize: true,
fontAppearance: true,
lineHeight: true,
textDecoration: true,
textTransform: true,
letterSpacing: true,
};
}

return defaultBorderControls;
return defaultTypographyControls;
}

0 comments on commit 64f5992

Please sign in to comment.