Skip to content

Add addClass and removeClass methods to the block to deal with CSS classes #8270

@BeksOmega

Description

@BeksOmega

To Fix

  1. Add an addClass method to the BlockSvg class, that takes in a passed string, and calls dom.addClass with the this.svgGroup_ to add it as a CSS class on the block.
  2. Add a removeClass method to the BlockSvg class, that takes in a passed string, and calls dom.removeClassClass with the this.svgGroup_.
  3. Refactor any calls in the BlockSvg class to dom.addClass with this.svgGroup_ to call this.addClass instead.
  4. Refactor any calls in the BlockSvg class to dom.removeClass with this.svgGroup_ to call this.removeClass instead.

The PR to fix this should be made against the rc/v12.0.0 branch.

To work on this issue, please comment below asking to be assigned.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions