Skip to content

Commit

Permalink
Group letter spacing correctly under typography supports (#34515)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw authored Sep 3, 2021
1 parent f0ee759 commit 4fd82eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/block-editor/src/hooks/letter-spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import { cleanEmptyObject } from './utils';
* Key within block settings' supports array indicating support for letter-spacing
* e.g. settings found in `block.json`.
*/
export const LETTER_SPACING_SUPPORT_KEY = '__experimentalLetterSpacing';
export const LETTER_SPACING_SUPPORT_KEY =
'typography.__experimentalLetterSpacing';

/**
* Inspector control panel containing the letter-spacing options.
Expand Down
2 changes: 1 addition & 1 deletion packages/blocks/src/api/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const __EXPERIMENTAL_STYLE_PROPERTY = {
},
letterSpacing: {
value: [ 'typography', 'letterSpacing' ],
support: [ '__experimentalLetterSpacing' ],
support: [ 'typography', '__experimentalLetterSpacing' ],
},
'--wp--style--block-gap': {
value: [ 'spacing', 'blockGap' ],
Expand Down

0 comments on commit 4fd82eb

Please sign in to comment.