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

Cleanup global styles #7564

Merged
merged 7 commits into from
Sep 5, 2022
Merged

Cleanup global styles #7564

merged 7 commits into from
Sep 5, 2022

Conversation

pettinarip
Copy link
Member

Description

  1. Removed all previous reset css rules in GlobalStyles in favor of the reset rules applied by Chakra.
  2. Refactor: moved all the still necessary global styles remaining inside GlobalStyles into the Chakra theme folder. To have everything in one place.
  3. Deleted the GlobalStyles component.

Related Issue

#6374

@vercel
Copy link

vercel bot commented Aug 25, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
ethereum-org-website ❌ Failed (Inspect) Sep 2, 2022 at 7:01PM (UTC)

@@ -1,7 +1,7 @@
export type Colors = typeof colors

const colors = {
grey: {
gray: {
Copy link
Member

Choose a reason for hiding this comment

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

I see in the figma this is spelt grey. Should that be updated there to reflect this change. I have no strong preference on the spelling we use, just should be consistent.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call, yes.

To clarify, Chakra is using gray. Calling @nloureiro to update those names in the design system and keep the consistency.

@@ -7,7 +7,6 @@ import { IntlProvider } from "react-intl"
import { LocaleProvider } from "gatsby-theme-i18n"

import { lightTheme, darkTheme } from "../theme"
import GlobalStyle from "./GlobalStyle"
Copy link
Member

Choose a reason for hiding this comment

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

This was the only use of this component, so I think we can delete it :)

Base automatically changed from chakra-buttonlink-component to dev September 1, 2022 15:44
@gatsby-cloud
Copy link

gatsby-cloud bot commented Sep 2, 2022

Gatsby Cloud Build Report

ethereum-org-website-dev

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 33m

Copy link
Member

@corwintines corwintines left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@pettinarip pettinarip merged commit b7db214 into dev Sep 5, 2022
@pettinarip pettinarip deleted the legacy-global-styles branch September 5, 2022 19:51
@corwintines corwintines mentioned this pull request Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants