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

[Docs] Incorrect themeConfig object in Search Button example #900

Open
matteobu opened this issue Feb 28, 2025 · 1 comment
Open

[Docs] Incorrect themeConfig object in Search Button example #900

matteobu opened this issue Feb 28, 2025 · 1 comment

Comments

@matteobu
Copy link

As discussed in this Slack thread, the OramaSearchButton component has an issue with a duplicate themeConfig object.

Current Example (Incorrect):

import { OramaSearchButton } from '@orama/react-components';

<OramaSearchButton
  size="large"
  colorScheme="dark"
  themeConfig={{
    themeConfig: {
      colors: {
        dark: {
          '--background-color-primary': '#231102'
        },
      },
    },
  }}
>
  Search something...
</OramaSearchButton>

Corrected Version:

import { OramaSearchButton } from '@orama/react-components';

 <OramaSearchButton
        size="large"
        colorScheme="dark"
        themeConfig={{
          colors: {
            dark: {
              '--background-color-primary': '#231102',
            },
          },
        }}
      >
        Search something...
      </OramaSearchButton>

The extra themeConfig nesting is unnecessary and should be removed for proper configuration.

@matteobu
Copy link
Author

I can push the change if you agree.

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

No branches or pull requests

1 participant