Skip to content
Merged
Show file tree
Hide file tree
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
Group letter spacing correctly under typography supports
  • Loading branch information
aaronrobertshaw committed Sep 3, 2021
commit 8865a3693475634ccfe7e935c7539f6e1508388a
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