with my css (using ::before and ::after), but it is leaking out all over the place in rich text editors. Probably happening elsewhere but this is the first place I've seen it.
here's my button:
But now all the menus in rich text editors are getting styled:
It looks like the problem here might be that in your css you have targeted button tag which will style all button tags, you need to make sure your style is targeting that one specific element.
I would say as a general rule you shouldnt style elements only. Well in most cases.
add a class or use a parent selector at least.
That being said hubspots styling should be pretty bullet proof, This happens when people style the button element directly iunstead of only styling the hs-button class instead.
It looks like the problem here might be that in your css you have targeted button tag which will style all button tags, you need to make sure your style is targeting that one specific element.