Skip to content

Fix maxWidths in theme not being applied#662

Merged
emplums merged 2 commits intoprimer:majorfrom
dcastil:patch-2
Mar 25, 2020
Merged

Fix maxWidths in theme not being applied#662
emplums merged 2 commits intoprimer:majorfrom
dcastil:patch-2

Conversation

@dcastil
Copy link
Copy Markdown
Contributor

@dcastil dcastil commented Jan 10, 2020

In the styled-system v5.0.0 Changelog theme.maxWidths was replaced by theme.sizes. This PR replaces the deprecated key so setting props like maxWidth="medium" works again.

Closes: #734

Merge checklist

  • Changed base branch to release branch
  • Add or update TypeScript definitions (index.d.ts) if necessary
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

In the styled-system v5.0.0 Changelog `theme.maxWidths` was replaced by `theme.sizes`
https://github.com/styled-system/styled-system/blob/master/CHANGELOG.md#v500-2019-06-02

This commit replaces the deprecated key so setting props like `maxWidth="medium"` works again.
@vercel
Copy link
Copy Markdown

vercel bot commented Jan 10, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/primer/primer-components/c7akl86zm
✅ Preview: https://primer-components-git-fork-dcastil-patch-2.primer.now.sh

@vercel vercel bot temporarily deployed to Preview January 10, 2020 13:35 Inactive
@dcastil dcastil marked this pull request as ready for review January 10, 2020 13:36
@dcastil
Copy link
Copy Markdown
Contributor Author

dcastil commented Jan 10, 2020

Verify fix

The same doesn't work on https://primer.style/components/BorderBox

@dcastil dcastil changed the title Fix theme.maxWidths not being applied Fix maxWidths in theme not being applied Jan 10, 2020
@emplums emplums added the major release breaking changes label Jan 13, 2020
Copy link
Copy Markdown

@emplums emplums left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Please hold off on merging until we've got a major release branch ready as this will be a breaking change for users of our theme! :)

@emplums emplums changed the base branch from master to major March 19, 2020 20:39
@vercel vercel bot temporarily deployed to Preview March 23, 2020 16:32 Inactive
@emplums emplums merged commit 413eb17 into primer:major Mar 25, 2020
@emplums emplums mentioned this pull request Mar 25, 2020
8 tasks
@dcastil dcastil deleted the patch-2 branch March 25, 2020 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major release breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants