-
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
Fixed Tailwind 4 migration bugs, broken build #3532
Conversation
🦋 Changeset detectedLatest commit: 50b11ef The changes in this PR will be included in the next version bump. 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 |
Storybook demo / Chromatic📝 Changes to review: 730e5ad8f57 | 91 components | 135 stories |
/* In case Modal is opened with `show()`, in eg. Vergic screensharing */ | ||
inset: 0; | ||
z-index: 9999; | ||
margin: auto; |
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.
Bør legges over kommentaren, siden det ikke har noe med kommentaren å gjøre.
*, | ||
::after, | ||
::before, | ||
::backdrop, | ||
::file-selector-button { | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; | ||
border: 0 solid; | ||
} |
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.
Vil ikke dette kunne brekke en del for de som lener seg på user agent stylesheet?
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.
Stemmer, fjernet det på main 👍
Description
Tailwind 4 sets
margin: 0´ and
padding: 0on every element. This caused
inset: 0` to no longer work for Modal.margin: auto
on ModalTested by emulating the new Tailwind 4 base-sheet and running chromatic locally to check for discrepancies.
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.")