@atlaskit/storybook-addon-design-system 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -57,7 +57,7 @@ var stackColumnStyles = {
|
|
|
57
57
|
*/
|
|
58
58
|
|
|
59
59
|
var hackThemeOverrideOnStyleElement = function hackThemeOverrideOnStyleElement(style, theme) {
|
|
60
|
-
|
|
60
|
+
style.innerText = style.textContent.replace("html[data-theme=\"".concat(theme, "\"]"), "html[data-theme=\"".concat(theme, "\"],.ads-theme-override[data-theme=\"").concat(theme, "\"]"));
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
var withDesignTokens = (0, _addons.makeDecorator)({
|
package/dist/cjs/version.json
CHANGED
|
@@ -29,7 +29,9 @@ const stackColumnStyles = {
|
|
|
29
29
|
* .ads-theme-override, for split and stack views.
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
|
-
const hackThemeOverrideOnStyleElement = (style, theme) =>
|
|
32
|
+
const hackThemeOverrideOnStyleElement = (style, theme) => {
|
|
33
|
+
style.innerText = style.textContent.replace(`html[data-theme="${theme}"]`, `html[data-theme="${theme}"],.ads-theme-override[data-theme="${theme}"]`);
|
|
34
|
+
};
|
|
33
35
|
|
|
34
36
|
const withDesignTokens = makeDecorator({
|
|
35
37
|
name: DECORATOR_ID,
|
package/dist/es2019/version.json
CHANGED
|
@@ -36,7 +36,7 @@ var stackColumnStyles = {
|
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
var hackThemeOverrideOnStyleElement = function hackThemeOverrideOnStyleElement(style, theme) {
|
|
39
|
-
|
|
39
|
+
style.innerText = style.textContent.replace("html[data-theme=\"".concat(theme, "\"]"), "html[data-theme=\"".concat(theme, "\"],.ads-theme-override[data-theme=\"").concat(theme, "\"]"));
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
var withDesignTokens = makeDecorator({
|
package/dist/esm/version.json
CHANGED