epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
472 stars 164 forks source link

Styles from macromolecules mode break global styles #5543

Open MariaDolotova opened 2 weeks ago

MariaDolotova commented 2 weeks ago

Hello! Styles from "ketcher-macromolecules" break the global styles.

Libraries versions: "ketcher-core": "^2.24.0", "ketcher-react": "^2.24.0", "ketcher-standalone": "^2.24.0", "ketcher-macromolecules": "^2.24.0"

rrodionov91 commented 2 weeks ago

Hi @MariaDolotova Thank you for highlighting the issue. Could you please provide a screenshot how it looks like and a piece of code where you import/use ketcher styles?

MariaDolotova commented 1 week ago

Hi @rrodionov91 ! Please find below the gif of how styles changes (please notice the panel on the right) when I switch to macromolecule mode: ketcher_macromolecule_mode

We are opening Ketcher inside our dialog. And for importing styles - we do not import them directly, just import Polymer object from ketcher-macromolecule library. image And create the PolymerEditor like this: image