Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(www): Fix theme-ui theme breakpoints (dark mode aftercare, episode 4) #18517

Merged
merged 1 commit into from
Oct 11, 2019

Conversation

fk
Copy link
Contributor

@fk fk commented Oct 11, 2019

The first breakpoint we get from gatsby-design-tokens breakpoints object is xxs: 0.
While this did make sense in the context of styled-system, it creates an unnecessary breakpoint in the context of theme-ui, which provides this "default" breakpoint for us already.

Switch a couple of mediaQuery usages to theme-ui's array syntax.

(Ref. #18027)

The first breakpoint we get from `gatsby-design-tokens` breakpoints object is `xxs: 0`.
While this did make sense in the context of `styled-system`, it causes problems in the context of `theme-ui`/arrays.

Switch a couple of `mediaQuery` usages to theme-ui's array syntax.
@fk fk requested a review from a team as a code owner October 11, 2019 14:13
@fk fk added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Oct 11, 2019
@fk
Copy link
Contributor Author

fk commented Oct 11, 2019

@fk fk merged commit bb31df2 into master Oct 11, 2019
@delete-merged-branch delete-merged-branch bot deleted the topics/www-theme-ui-breakpoints branch October 11, 2019 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants