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

Typing issues when using breakpoint properties in global styles #235

@Johoseph

Description

@Johoseph

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions