Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jul 31, 2024
1 parent b4c0e35 commit a58c191
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/block-editor/src/utils/transform-styles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,14 @@ function transformStyle(

// `html`, `body` and `:root` need some special handling since they
// generally cannot be prefixed with a classname and produce a valid
// selector.
// Also include some special rules for various forms of :root and body
// that crop up.
// selector. Instead we replace the whole root part of the selector.
if ( ROOT_SELECTOR_REGEX.test( selector ) ) {
return selector.replace(
ROOT_SELECTOR_REGEX,
prefix
);
}

// console.log( out, rootSelector, prefixedSelector );

return prefixedSelector;
},
} ),
Expand Down

0 comments on commit a58c191

Please sign in to comment.