Skip to content

Commit

Permalink
Fix custom CSS variables in the editor (#25619)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored Sep 24, 2020
1 parent 973a308 commit c3eb962
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default ( blockData, baseTree, userTree ) => {
const flattenTree = ( input, prefix, token ) => {
let result = [];
Object.keys( input ).forEach( ( key ) => {
const newKey = prefix + key.replace( '/', '-' );
const newKey = prefix + kebabCase( key.replace( '/', '-' ) );
const newLeaf = input[ key ];

if ( newLeaf instanceof Object ) {
Expand Down

0 comments on commit c3eb962

Please sign in to comment.