Migration guide for @uploadcare/blocks v0.39.0
BREAKING CHANGES
Shadow DOM
is removed from the project. Now, we have a global style.
See below for more details.
New styles
Previously, we had Shadow DOM
in CSS, but now we have a simple CSS.
We are decline from the idea use Shadow DOM
.
Detailed information about the new CSS can be found on the styles page.
Migration steps
Case 1. You were using a default Shadow DOM
without any customizations
You were using styles via Shadow DOM
by css-src
:
However now you need to use global style include by link
:
Case 2. You were using a Shadow DOM
with customizations
Sometimes, you might need to make custom styles for your component, and you would do it through an inline css
that you add to shadowStyles
. Now it’s much simpler to use the css you know with its specificity:
Now you need to use global css:
See the styles page for more details.