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

refactor(www): Convert Pullquote to use theme-ui #25351

Merged
merged 4 commits into from
Jun 27, 2020

Conversation

tesseralis
Copy link
Contributor

Description

Refactor the <Pullquote> component to use theme-ui instead of styled-component style. In addition, refactor the styling for the star positions to make it more clear what the styles are doing.

Related

Follow-up of #25282

@tesseralis tesseralis requested a review from fk June 27, 2020 08:09
@tesseralis tesseralis requested a review from a team as a code owner June 27, 2020 08:09
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 27, 2020
}
const starPositionStyles = [
{
yellow: { side: `left`, offset: `1.8rem` },
Copy link
Contributor Author

@tesseralis tesseralis Jun 27, 2020

Choose a reason for hiding this comment

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

@fk another thing we can do is switch these to percentage points.

So for this one, if offset: `50%` , it will always be 50% between the top and bottom regardless of how tall the pullquote is. What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

If you think it still works out visually, go for it!

@tesseralis tesseralis merged commit aa8c300 into master Jun 27, 2020
@delete-merged-branch delete-merged-branch bot deleted the www/refactor-pullquote branch June 27, 2020 09:20
@pvdz pvdz removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 30, 2020
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