Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: How to disable/hide theme change for docs tab? #22500

Closed
brijesh231199 opened this issue May 10, 2023 · 2 comments
Closed

[Bug]: How to disable/hide theme change for docs tab? #22500

brijesh231199 opened this issue May 10, 2023 · 2 comments

Comments

@brijesh231199
Copy link

brijesh231199 commented May 10, 2023

Describe the bug

image_2023_05_10T12_42_48_100Z

Below in my preview.js file code

const preview = {
  globalTypes: {
    theme: {
      name: 'Theme',
      description: 'Theme for the components',
      defaultValue: 'light',
      toolbar: {
        icon: 'circlehollow',
        items: themeArray,
      },
    }
  },
  parameters: {
    backgrounds: {
      disable: true,
    },
    action: { argTypesRegex: "^on[A-Z].*" },
    controls: {
      matchers: {
        color: /(background|color)$/i,
        date: /Date$/,
      },
    },
  }
};

To Reproduce

No response

System

@storybook/react": "^7.0.9

Additional context

No response

@brijesh231199 brijesh231199 changed the title [Bug]: How to disable theme for docs tab? [Bug]: How to disable/hide theme change for docs tab? May 10, 2023
@shilman
Copy link
Member

shilman commented May 11, 2023

closing as dupe to #22081

@shilman shilman closed this as completed May 11, 2023
@brijesh231199
Copy link
Author

@shilman i have added theme switcher using global type, how to disable for docs using manager.js above solution not worked for me. Can you give proper solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants