Skip to content

Conversation

@Shreshthaaa
Copy link
Contributor

Details :

Added the blockStyleName as a CSS class on the block. Also called dom.removeClass with this.styleName_ to remove any previous style.

Fixes :

#8269

Copy link
Contributor

@BeksOmega BeksOmega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One initial fix then I'll give it a more thorough check!

@Shreshthaaa
Copy link
Contributor Author

Hey @BeksOmega, I have done the needful. Kindly review.

Copy link
Contributor

@BeksOmega BeksOmega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just one fix then should be good to go =)

Comment on lines 1165 to 1167
if (!this.svgGroup_) {
throw new Error('SVG group is not defined');
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this? The svgGroup_ is non-nullable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

@BeksOmega BeksOmega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet once CI passes I'll get this merged =)

@BeksOmega BeksOmega changed the title fix: added block's style as a CSS class to block's root SVG feat: added block's style as a CSS class to block's root SVG Aug 6, 2024
@github-actions github-actions bot added PR: feature Adds a feature and removed PR: fix Fixes a bug labels Aug 6, 2024
@BeksOmega BeksOmega merged commit 9374c02 into RaspberryPiFoundation:rc/v12.0.0 Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: feature Adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants