bigcommerce / big-design

Design system that powers the BigCommerce ecosystem.
https://bigcommerce.github.io/big-design
Other
47 stars 64 forks source link

fix(patterns): fix header wrapping on mobile #1534

Closed davelinke closed 1 month ago

davelinke commented 1 month ago

What?

Fixed header wrapping on mobile screens

Why?

The back link in the header component was aligning side to side with the Main heading and description on mobile screens.

Screenshots/Screen Recordings

Before

Screenshot 2024-09-12 at 4 46 38 PM

After

Screenshot 2024-09-12 at 4 46 51 PM

Testing/Proof

Add the sample in your dev.tsx and shrink the window to mobile size.

dev.tsx code ```tsx import { Page, Header, ActionBar } from '@bigcommerce/big-design-patterns'; import { Panel, Text } from '@bigcommerce/big-design'; import { AddIcon } from '@bigcommerce/big-design-icons'; const PageWithActionBar = () => { return ( } header={
, }, ]} description="Page description (optional)" title="Page with action bar" backLink={{ text: "Back to patterns", onClick: () => window.alert("Back link clicked"), href: "#", }} /> } > Hello ); }; export default PageWithActionBar; ```
changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: 4bf26ad128cc4d95e292da845edec5328b7fd8ce

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | -------------------------------- | ----- | | @bigcommerce/big-design-patterns | Patch | | @bigcommerce/docs | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR