diff --git a/commands/storybook.js b/commands/storybook.js index 7ee2711..19d0bc5 100644 --- a/commands/storybook.js +++ b/commands/storybook.js @@ -78,6 +78,11 @@ async function storybook(serve, options) { backgroundTheme = storybookConfig.backgroundTheme.toLowerCase(); } + if (storybookConfig.useGlobals === true || storybookConfig.backgroundTheme == undefined) { + useGlobals = true; + backgroundTheme = 'light'; + } + // Upload Storybook static await static.getSignedUrl(options) .then(async function (response) { diff --git a/package-lock.json b/package-lock.json index 1eaf7d3..e9790ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lambdatest/smartui-storybook", - "version": "1.1.28", + "version": "1.1.29", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@lambdatest/smartui-storybook", - "version": "1.1.28", + "version": "1.1.29", "license": "MIT", "dependencies": { "archiver": "^5.3.1", diff --git a/package.json b/package.json index 4e29baa..b87b095 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lambdatest/smartui-storybook", - "version": "1.1.28", + "version": "1.1.29", "description": "LambdaTest's command-line interface (CLI) aimed to help you run your SmartUI tests on LambdaTest platform", "main": "index.js", "repository": {