Closed IMBeniamin closed 3 months ago
I think I explored this at some point, it's a matter of svgr configuration. Happy to accept a PR. On a side note, it's great that you're a devexpress customer. A sponsorship of the MDXEditor project would help me to prioritize my work on problems like this one and further feature development.
@petyosi
I tried to have look at this and not sure that SVGR config would help here.
We could force visibility on mask
elements to alway be visible with !important
to avoid visibility: hidden
being inherited.
If we want really unique ids for each instance of the svg, then it would require a bit of time.
Thoughts on which path you would prefer?
Cheers
@david10sing I'm even thinking about using spritesheet for the icons, some authors mention it as more performant.
Alternatively, I can rework the icons to not use masks, but this would require a bit of leveling up of my figma skills :).
:tada: This issue has been resolved in version 3.0.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Thanks @petyosi
I was wondering too why the mask was needed...
If you want to ask for support or request features, sponsor the project and contact me over email.
Describe the bug The mask id declared for the editor icon is not unique and causes issues when having multiple instances of which one is hidden
Reproduction codesandbox link
To Reproduce Steps to reproduce the behavior:
Expected behavior Icons should be visible on all instances even if one or more instances are hidden
Screenshots
![image](https://github.com/mdx-editor/editor/assets/35833890/2ce04f64-1066-406f-981a-529ec616ea19)
Desktop (please complete the following information):
Additional context Refer to this issue on devexpress's support forum for the original troubleshooting