You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, developers need to simply customize the editor styles.
The ::part(), exportparts (html global attributes) can be used to simply implement shadow dom element custom styles that u want to expose. and it doesn't affect the overall design.
Why not CSS var attributes?
Because it's a heavy workload and not flexible.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In some cases, developers need to simply customize the editor styles.
The
::part()
,exportparts
(html global attributes) can be used to simply implement shadow dom element custom styles that u want to expose. and it doesn't affect the overall design.Why not CSS var attributes?
Because it's a heavy workload and not flexible.
Browser Compatibility
https://developer.mozilla.org/en-US/docs/Web/CSS/::part#browser_compatibility
.e.g
slash-menu-popover.ts source code.
custom.html
I can PR for this feature.
Beta Was this translation helpful? Give feedback.
All reactions