-
Notifications
You must be signed in to change notification settings - Fork 1
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
Docs(web): Document component changes into the Migration Guide #DS-1489 #1697
base: docs/web-migration-general-changes
Are you sure you want to change the base?
Docs(web): Document component changes into the Migration Guide #DS-1489 #1697
Conversation
✅ Deploy Preview for spirit-design-system-storybook canceled.
|
✅ Deploy Preview for spirit-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
Button `inverted` modifier was removed. Use themes to switch the button colors. | ||
|
||
### Field Group: Alignment |
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.
### Field Group: Alignment | |
### FieldGroup: Alignment |
The component is called FieldGroup
IMHO.
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 it depends on the context. I believe we generally use the Title Case syntax (with space) in the docs and demos, and PascalCase in code.
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 we should refer to the components in a consistent way by their names. We use FileUploader
not "File Uploader". It is way easier to address the components with the same name as in the code.
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 use Title Case syntax in design too 🤷
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.
It is way easier to address the components with the same name as in the code.
It is (or can be), but we need to do this consciously and throughout the whole design system. It's a change that exceeds the scope of this PR.
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.
Ok, let's discuss this on a Long Topics. https://www.notion.so/almacareer/Long-topics-13baee254ce6484fa7d3180489384d84
7fd4780
to
5728b54
Compare
a2ae7be
to
f990226
Compare
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.
👍🏻
|
||
Button `inverted` modifier was removed. Use themes to switch the button colors. | ||
|
||
### Field Group: Alignment |
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 it depends on the context. I believe we generally use the Title Case syntax (with space) in the docs and demos, and PascalCase in code.
5728b54
to
db21506
Compare
f990226
to
7891cc3
Compare
cbfc143
to
1539c9f
Compare
d385594
to
7becc0e
Compare
1539c9f
to
e7c27d7
Compare
7becc0e
to
572c270
Compare
e7c27d7
to
b783fd5
Compare
572c270
to
06fc04b
Compare
### Pill: Renamed and Removed Variants | ||
|
||
Pill component variants `primary`, `secondary`, `tertiary`, `inverted` and `unselected` were removed. | ||
Instead, the `neutral` variant was added. The current list of variants is |
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.
Instead, the `neutral` variant was added. The current list of variants is | |
Instead, the `neutral` variant was added. The current list of variants is: |
|
||
#### Migration Guide | ||
|
||
Use the `neutral` or emotion variants. If you need other variants, please, let us know. |
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.
Use the `neutral` or emotion variants. If you need other variants, please, let us know. | |
Use the `neutral` or emotion variants. If you need more variants, please, let us know. |
|
||
### Product Logo: The `inverted` Modifier Removed | ||
|
||
Product Logo `inverted` modifier was removed. Use themes to switch the logo colors. |
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.
Use themes to switch the logo colors.
ProductLogo
doesn't have any themeable styling. I think it's more like this:
Product Logo `inverted` modifier was removed. Use themes to switch the logo colors. | |
The `inverted` modifier was removed from Product Logo. The component itself does not apply any color now, but you may want to swap the image source for certain themes. For example: | |
<div class="ProductLogo"> | |
<img src="path-to-logo" class="my-logo-for-light-theme" alt="Product Logo" height="60" width="120" /> | |
<img src="path-to-logo" class="my-logo-for-dark-theme" alt="Product Logo" height="60" width="120" /> | |
</div> | |
This is a simple example, both images will be downloaded in this case. You may need to involve a more complex solution that will be performance friendly. |
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'm filing an issue to show how to use themeable images: https://jira.almacareer.tech/browse/DS-1519
But now I realize this is matters mainly with dynamic themes like dark mode… So we could leave it out here and just add a general docs?
|
||
### Toast: Link and Close Button | ||
|
||
Toast component now has its own close button and link. |
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.
Toast component now has its own close button and link. | |
The Toast component now has its own close button and link. |
I think there should always be the definite article in the form of "the X component"…
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.
LGTM 👍
Description
Additional context
Issue reference