-
Notifications
You must be signed in to change notification settings - Fork 21
feat(docs, styles): create html/css Divider component #6783
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
base: main
Are you sure you want to change the base?
Conversation
…d ready to test tokens
…s in `_index.scss`, added text for docs
🦋 Changeset detectedLatest commit: a9a923e The changes in this PR will be included in the next version bump. This PR includes changesets to release 14 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
packages/documentation/src/stories/components/divider/divider.docs.mdx
Outdated
Show resolved
Hide resolved
packages/documentation/src/stories/components/divider/divider.stories.ts
Outdated
Show resolved
Hide resolved
packages/documentation/src/stories/components/divider/divider.docs.mdx
Outdated
Show resolved
Hide resolved
packages/documentation/src/stories/foundations/typography/typography.docs.mdx
Show resolved
Hide resolved
packages/documentation/src/stories/components/divider/divider.docs.mdx
Outdated
Show resolved
Hide resolved
myrta2302
left a comment
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 think this should be a "minor" bump, since we’re adding something new.
…mpo on docs, updated link to figma
Implemented a `Divider` component with styles using tokens and updated documentation.
|
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.
| '@swisspost/design-system-styles': minor | ||
| --- | ||
|
|
||
| Implemented a `Divider` html/css component using tokens for styles. Divider documentation is also added to /Foundations/Typography page. |
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.
| Implemented a `Divider` html/css component using tokens for styles. Divider documentation is also added to /Foundations/Typography page. | |
| Implemented a `Divider` html/css component using tokens for styles. Divider documentation is also added to /Components/Divider page. |
| <Canvas sourceState="shown" of={DividerStories.Default} /> | ||
| <div className="hide-col-default"> | ||
| <Controls of={DividerStories.Default} /> | ||
| </div> |
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.
We should mention here, that one can simply use our spacing utilities to change the default margin above/below.
e.g.
A dividers top and bottom default margin can be overridden by using our spacing utilities.
| ## Usage | ||
|
|
||
| Dividers are often used within forms. |
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 would remove that, as it does not provide any value.










📄 Description
margin-topand themargin-bottomclasses to change the spacing as following: 4px, 8px (default, so no classes), 16px, 24px, 32px, 40px). Users can define them separately for top and bottom./foundations/typographypage.🚀 Demo
🔮 Design review
📝 Checklist