Skip to content
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

Stylelint v16 update #3250

Merged
merged 12 commits into from
Oct 21, 2024
Merged

Stylelint v16 update #3250

merged 12 commits into from
Oct 21, 2024

Conversation

KenAJoh
Copy link
Collaborator

@KenAJoh KenAJoh commented Oct 17, 2024

Description

Migrated to Styleint v16 🎉
Seems like our plugin still works as expected 🎉

Biggest changes:

Component Checklist 📝

  • JSDoc
  • Examples
  • Documentation
  • Storybook
  • Style mappings (@navikt/core/css/config/_mappings.js)
  • Component tokens (@navikt/core/css/tokens.json)
  • CSS class deprecations (@navikt/aksel-stylelint/src/deprecations.ts)
  • Exports (@navikt/core/react/src/index.ts and @navikt/core/react/package.json)
  • New component? CSS import (@navikt/core/css/index.css)
  • Breaking change? Update migration guide. Consider codemod.
  • Changeset (Format: <Component>: <gitmoji?> <Text>. E.g. "Button: ✨ Add feature xyz.")

Copy link

changeset-bot bot commented Oct 17, 2024

🦋 Changeset detected

Latest commit: 596ad7e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@navikt/ds-css Patch
@navikt/aksel-stylelint Patch
@navikt/aksel Patch
@navikt/ds-react Patch
@navikt/ds-tokens Patch
@navikt/ds-tailwind Patch
@navikt/aksel-icons Patch

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

Copy link
Contributor

github-actions bot commented Oct 17, 2024

Storybook demo

5ea14a9e3 | 91 komponenter | 144 stories

@navikt/core/css/primitives/stack.css Show resolved Hide resolved
right: 0;
bottom: 0;
left: 0;
inset: 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

caniuse claims 1.3% in Norway use an iOS device that doesn't support inset 🤔 https://caniuse.com/mdn-css_properties_inset
Not sure where we should draw the line. I see we have used it other places though, so I guess we have "ripped of the band-aid" already?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is only applied when using the polyfill, one could assume that inset might not be supported.. So reverted the change 👍

.changeset/slimy-yaks-smash.md Outdated Show resolved Hide resolved
HalvorHaugan
HalvorHaugan previously approved these changes Oct 18, 2024
@KenAJoh KenAJoh merged commit 64aab73 into main Oct 21, 2024
2 checks passed
@KenAJoh KenAJoh deleted the stylelint-update-2024 branch October 21, 2024 07:54
@github-actions github-actions bot mentioned this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants