designsystemet icon indicating copy to clipboard operation
designsystemet copied to clipboard

Known changes that require a major version (v2)

Open mimarz opened this issue 7 months ago • 2 comments

List of changes we want to do that would require a new major version of Designsystemet according to semver.

Search for @deprecated comments in code. Remove when applicable.

Other known deprecations:

  • Remove deprecated Combobox (when Suggestion is out of experimental) #2610
  • Remove deprecated CSS variable #3405
  • Remove skiplink.css and togglegroup.css #3829
  • Remove @digdir/designsystemet-react/colors #3848
  • Remove deprecated color.d.ts (generated from tokens build) #3837
  • Remove some exported React hooks, contenders: #3849
    • useMediaQuery
    • useDebounceCallback
    • useIsomorphicLayoutEffect
    • useSynchronizedAnimation
  • "typography" #3646
  • "Default color names" #4053

mimarz avatar Jun 03 '25 12:06 mimarz

Delete skiplink.css and togglegoup.css (skip-link and toggle-group replaces) #3829

oddvernes avatar Jul 09 '25 08:07 oddvernes

Look at https://github.com/digdir/designsystemet/issues/2449 again

Barsnes avatar Aug 12 '25 06:08 Barsnes

  • Consolidate to a single package?
  • Use data-props in React too?
  • Move component tokens to :root?
  • Simplify Card? (compound compoent now)
  • Add Flex/Grid primitives?
  • Remove utility-classes?

eirikbacker avatar Dec 09 '25 11:12 eirikbacker

  • Consolidate to a single package?

Could you elaborate? We currently have multiple packages so consumers only use what they need, without having to install a lot of dependencies.

  • Use data-props in React too?

I want to implement this is v1, and deprecate the non data- props :) Seems weird to have a prop that just maps to data-NAME...

  • Add Flex/Grid primitives?

Can do this without V2 :)

Barsnes avatar Dec 09 '25 11:12 Barsnes