-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat: added block's style as a CSS class to block's root SVG #8436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added block's style as a CSS class to block's root SVG #8436
Conversation
BeksOmega
left a comment
There was a problem hiding this 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!
|
Hey @BeksOmega, I have done the needful. Kindly review. |
BeksOmega
left a comment
There was a problem hiding this 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 =)
core/block_svg.ts
Outdated
| if (!this.svgGroup_) { | ||
| throw new Error('SVG group is not defined'); | ||
| } |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
BeksOmega
left a comment
There was a problem hiding this 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 =)
Details :
Added the
blockStyleNameas a CSS class on the block. Also calleddom.removeClasswiththis.styleName_to remove any previous style.Fixes :
#8269