-
Notifications
You must be signed in to change notification settings - Fork 42
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
[Migration] deprecate darkside props #3656
Conversation
|
Storybook demo / Chromatic7096cf5a2 | 91 components | 135 stories |
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.
Might make sense to rename spacing
key for the group to something more fitting.
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.
Yeah, can make a whole separate one for darkside? 🤔
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.
Seems the imports needs updating ❌
import type { API, FileInfo } from "jscodeshift"; | ||
import { getLineTerminator } from "../../../utils/lineterminator"; | ||
import removePropsFromComponent from "../../../utils/removeProps"; | ||
import { findComponentImport } from "../../spacing/spacing.utils"; |
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.
@KenAJoh should we move all the utility functions inside the spacing directory out to more generic utils?
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.
If you see the use for them elsewhere, sure 👍
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 only currently use one of the more generic ast crawling functions you made, but i moved the whole group of them into a separate ast.ts. Feels like that makes the most sense 💭
Would be nice to merge this and use the utils further in the current wip migration (Box) 🤩 Will merge ASAP as it's approved |
Description
Component Checklist 📝
@navikt/core/css/config/_mappings.js
)@navikt/core/css/tokens.json
)@navikt/aksel-stylelint/src/deprecations.ts
)@navikt/core/react/src/index.ts
and@navikt/core/react/package.json
)@navikt/core/css/index.css
)<Component>: <gitmoji?> <Text>.
E.g. "Button: ✨ Add feature xyz.")