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

Feat/separator #38

Merged
merged 36 commits into from
May 16, 2022
Merged

Feat/separator #38

merged 36 commits into from
May 16, 2022

Conversation

jamesducky
Copy link
Contributor

@jamesducky jamesducky commented May 3, 2022

Closes DEVELOP: Separator

Summary of changes included in this PR

  • Created separator component
  • Add E2E and unit tests.
  • Storybook: created a wrapper around the component to allow it to inherit width and height from its parent.
  • Unable to include color prop due to token naming inconsistencies.
  • <Hr> element wrapped in a container div with flexbox to allow vertical direction.

Reviewer checklist:

  • Tests for
    • accessibility
    • rendered HTML (spec)
  • Storybook stories for all variants
  • JSDoc documentation for component
  • Update Example app (React, ...)

@github-actions
Copy link

github-actions bot commented May 3, 2022

Visit the preview URL for this PR (updated for commit bb62b07):

https://test-auth-d13f2--pr38-feat-separator-4f1bzdny.web.app

(expires Mon, 23 May 2022 12:59:33 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Copy link
Contributor

@nathan-bird nathan-bird left a comment

Choose a reason for hiding this comment

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

Tests are failing, please fix.

Copy link
Contributor

@nathan-bird nathan-bird left a comment

Choose a reason for hiding this comment

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

Looks good to me.
Since we pair programmed this I'd like one of the design system devs to also review it.

@TanguyDucky
Copy link
Contributor

Please merge main into this branch and update any color token name with color- prefix.
Example: tokens.$plmg-text-neutral becomes tokens.$plmg-color-text-neutral

See #39 for more information.

Copy link
Contributor

@nathan-bird nathan-bird left a comment

Choose a reason for hiding this comment

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

With the update to background colour tokens this PR should be updated to include a valid colour prop.

Copy link
Contributor

@TanguyDucky TanguyDucky left a comment

Choose a reason for hiding this comment

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

Thank you for the pull request! :)
And congrats on your first pull request! 🎉 👯‍♂️

The component looks good but the border-color makes it weird when zooming.
Also I requested some additional stories.

@TanguyDucky
Copy link
Contributor

TanguyDucky commented May 4, 2022

With the update to background colour tokens this PR should be updated to include a valid colour prop.

I've left a comment for designers on Figma. I'd like to ease the constraints on the color prop. Similar to Icon, it should accept any kind of color. Then on the guidelines and the code documentation we can indicate which colors should be used.

@jamesducky
Copy link
Contributor Author

With the update to background colour tokens this PR should be updated to include a valid colour prop.

I've left a comment for designers on Figma. I'd like to ease the constraints on the color prop. Similar to Icon, it should accept any kind of color. Then on the guidelines and the code documentation we can indicate which colors should be used.

Great. Designers agree. I'll add a prop accepting any color.

JakeH91
JakeH91 previously approved these changes May 5, 2022
Copy link
Contributor

@JakeH91 JakeH91 left a comment

Choose a reason for hiding this comment

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

I have nothing to add. All looks good to me 👍

@@ -80,6 +81,10 @@ ReactDOM.render(
<h1>PlmgCard slot-2</h1>
</div>
</PlmgCard>
<div style={{ width: '200px', height: '200px' }}>
<p>PlmgSeparator - vertical thin</p>
<PlmgSeparator thickness="thin" direction="vertical"></PlmgSeparator>
Copy link
Contributor

Choose a reason for hiding this comment

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

Self closing tag please

@jamesducky jamesducky marked this pull request as draft May 11, 2022 03:50
@jamesducky jamesducky marked this pull request as ready for review May 12, 2022 05:27
Copy link
Contributor

@nathan-bird nathan-bird left a comment

Choose a reason for hiding this comment

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

Please review how you are applying the styles.

nathan-bird
nathan-bird previously approved these changes May 12, 2022
@nathan-bird
Copy link
Contributor

Re-requested a review from Tanguy since he left a review requesting changes previously.

Copy link
Contributor

@TanguyDucky TanguyDucky left a comment

Choose a reason for hiding this comment

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

All good, just one tiny typo and a comment to update 😊

…separator.tsx

Co-authored-by: Tanguy <55230735+TanguyDucky@users.noreply.github.com>
@TanguyDucky TanguyDucky merged commit a48d82a into main May 16, 2022
@TanguyDucky TanguyDucky deleted the feat/separator branch May 16, 2022 13:02
@TanguyDucky
Copy link
Contributor

Many thanks @jamesducky 🎉

@jamesducky
Copy link
Contributor Author

jamesducky commented May 16, 2022

Thank you @TanguyDucky. 😅

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.

4 participants