Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Typing issues when using breakpoint properties in global styles #235

Open
Johoseph opened this issue Sep 29, 2022 · 0 comments
Open

Typing issues when using breakpoint properties in global styles #235

Johoseph opened this issue Sep 29, 2022 · 0 comments

Comments

@Johoseph
Copy link

When passing breakpoint object properties into the bumbag global theme provider, typescript complains as below:

image

Example code setup to reproduce:

const theme = {
  Toast: {
    styles: {
      base: {
        maxWidth: {
          default: "400px",
          "max-mobile": "300px",
        },
      },
    },
  },
};

const App = () => {
  return (
    <BumbagProvider theme={theme}>
        <Component />
        <ToastManager />
    </BumbagProvider>
  );
};

Expected behavior

No typescript compilation error.

Using non-native version 2.7.21

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

No branches or pull requests

1 participant