Closed JackieWei closed 4 weeks ago
Hi @JackieWei
I will close this issue as there is already another one covering this topic. If you have any questions or more information, please address them in the original issue.
The solution for this problem is also described in the original issue. In essence, setCustomElementsScopingSuffix
needs to be called before any custom element was defined (component imported). I adjusted your example to show how this could be achieved: https://stackblitz.com/edit/github-wmf1wn-xu3vcw?file=src%2FapplyScoping.ts,src%2Fmain.tsx
Duplicate of https://github.com/SAP/ui5-webcomponents/issues/10016
Describe the bug
[CustomElementsScope]: [setCustomElementsScopingSuffix will cause style broken, shadowDOM missing] Use setCustomElementsScopingSuffix and setCustomElementsScopingRules to customize ui5 tags in my project, and then all style broken
Isolated Example
https://stackblitz.com/edit/github-wmf1wn-r8quu1?file=src%2Fmain.tsx
Reproduction steps
Expected Behaviour
Style shold works, shadow dom attached
Screenshots or Videos
No response
UI5 Web Components for React Version
~2.3.0
UI5 Web Components Version
~2.3.0
Browser
Chrome
Operating System
MAC OS
Additional Context
No response
Relevant log output
No response
Organization
No response
Declaration