• Resolved antonyjosephsmith

    (@antonyjosephsmith)


    I have a Title block nested in a cover block and the classes on the title element without EditorsKit enabled are:

    block-editor-rich-text__editable block-editor-block-list__block wp-block has-sm-font-size is-selected wp-block-heading rich-text

    With EditorsKit enabled it changes too:

    block-editor-rich-text__editable block-editor-block-list__block wp-block has-object-object-color has-object-object-background-color has-text-color has-background has-object-object-font-size has-sm-font-size is-selected wp-block-heading rich-text

    This causes various problems since the .has-background class is used in the default core blocks CSS styling to add padding. Secondly it’s just plain wrong and the block doesn’t have a background set – only the parent Cover block does – which causes other specificity issues trying to target classes.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Editors Kit adding incorrect classes to blocks’ is closed to new replies.