Skip to content

Commit

Permalink
Merge pull request #3 from bigcommerce-labs/feature/wide-screen-break…
Browse files Browse the repository at this point in the history
…points

feat: wide page breakpoint action bar fix
  • Loading branch information
davelinke authored Aug 14, 2024
2 parents 5039041 + 551bd49 commit bd8d8d9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/patterns/src/components/actionBar/ActionBar.styled.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import { theme as defaultTheme } from "@bigcommerce/big-design-theme";
import styled from "styled-components";
import { BoxProps } from "@bigcommerce/big-design";
import { pageMaxWidth } from "../../big-design-theme-extras/StyleDefinitions";
import { pageMaxWidth, pageWideMaxWidth } from "../../big-design-theme-extras/StyleDefinitions";

// add the wide breakpoint definition to the theme
const moddedTheme = {
...defaultTheme,
breakpoints: {
...defaultTheme.breakpoints,
wide: "1500px",
},
};


/**
* Styled component for the action bar.
Expand Down Expand Up @@ -47,6 +57,10 @@ export const StyledActionBarContents = styled.div<BoxProps>`
@media (min-width: ${({ theme }) => theme.breakpointValues.tablet}) {
padding-inline: ${({ theme }) => theme.spacing.xxLarge};
}
@media (min-width: ${moddedTheme.breakpoints.wide}) {
max-width: ${pageWideMaxWidth};
}
`;

// Sets the default theme to ensure that the component has access to theme values even if not explicitly provided
Expand Down

0 comments on commit bd8d8d9

Please sign in to comment.