-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/separator #38
Conversation
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 🌎 |
There was a problem hiding this 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.
packages/component-library/src/components/plmg-separator/test/plmg-separator.spec.tsx
Outdated
Show resolved
Hide resolved
packages/component-library/src/components/plmg-separator/test/plmg-separator.spec.tsx
Outdated
Show resolved
Hide resolved
packages/component-library/src/components/plmg-separator/plmg-separator.stories.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
Please merge main into this branch and update any color token name with See #39 for more information. |
There was a problem hiding this 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.
There was a problem hiding this 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.
packages/component-library/src/components/plmg-separator/plmg-separator.scss
Outdated
Show resolved
Hide resolved
packages/component-library/src/components/plmg-separator/plmg-separator.stories.js
Show resolved
Hide resolved
packages/component-library/src/components/plmg-separator/test/plmg-separator.spec.tsx
Outdated
Show resolved
Hide resolved
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. |
There was a problem hiding this 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 👍
packages/component-library/src/components/plmg-separator/plmg-separator.tsx
Outdated
Show resolved
Hide resolved
packages/component-library/src/components/plmg-separator/test/plmg-separator.spec.tsx
Outdated
Show resolved
Hide resolved
packages/component-library/src/components/plmg-separator/test/plmg-separator.spec.tsx
Outdated
Show resolved
Hide resolved
examples/react-app/src/index.tsx
Outdated
@@ -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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self closing tag please
…nt per slot Instead of giving multiple elements to the same slot, provide a single one, wrapping the others.
There was a problem hiding this 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.
packages/component-library/src/components/plmg-separator/plmg-separator.stories.js
Outdated
Show resolved
Hide resolved
packages/component-library/src/components/plmg-separator/plmg-separator.tsx
Outdated
Show resolved
Hide resolved
packages/component-library/src/components/plmg-separator/plmg-separator.scss
Outdated
Show resolved
Hide resolved
…les. rewrote tests
Re-requested a review from Tanguy since he left a review requesting changes previously. |
There was a problem hiding this 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 😊
packages/component-library/src/components/plmg-separator/plmg-separator.tsx
Outdated
Show resolved
Hide resolved
packages/component-library/src/components/plmg-separator/plmg-separator.tsx
Outdated
Show resolved
Hide resolved
…separator.tsx Co-authored-by: Tanguy <[email protected]>
Many thanks @jamesducky 🎉 |
Thank you @TanguyDucky. 😅 |
Closes DEVELOP: Separator
Summary of changes included in this PR
<Hr>
element wrapped in a container div with flexbox to allow vertical direction.Reviewer checklist: