Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: navikt/aksel
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @navikt/aksel@7.11.0
Choose a base ref
...
head repository: navikt/aksel
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Feb 3, 2025

  1. Selecting an indeterminate checkbox checks all child items (#3549)

    Ref. https://m3.material.io/components/checkbox/guidelines#26cbff1c-7a56-4237-b563-5593573e6cf4
    
    | If some, but not all, child checkboxes are checked, the parent checkbox becomes an indeterminate checkbox. Selecting an indeterminate checkbox checks all child items.
    andnorda authored Feb 3, 2025
    Copy the full SHA
    81449a3 View commit details
  2. Copy the full SHA
    a516955 View commit details

Commits on Feb 4, 2025

  1. Copy the full SHA
    132e208 View commit details
  2. Copy the full SHA
    51cc4de View commit details
  3. Copy the full SHA
    6a7fbf7 View commit details
  4. Copy the full SHA
    9bda05c View commit details
  5. 👷 testing

    JulianNymark committed Feb 4, 2025
    Copy the full SHA
    7bf6a81 View commit details
  6. 👷 testing++

    JulianNymark committed Feb 4, 2025
    Copy the full SHA
    a667f53 View commit details
  7. Copy the full SHA
    2434037 View commit details
  8. demoside aktivitetsplan (#3552)

    * Getting started converting ActivityPlan to Aksel components
    
    * Refactor ActivityColumn
    
    * attempt to add Theme (from local path)
    
    * 🚧
    
    * 🐛 minify strips navds-r-p?
    
    * use correct react package (local) and use padding prop
    
    * correctly use the Theme wrapper in ThemeProvider
    
    * Refactored MainCard
    
    * Make ActivityCard more similar to "the real deal".
    
    * Reduce column padding
    
    * use Link component
    
    * add missing href to links in sykepenger
    
    * remove generic seletors on root
    
    * dark mode for sykepengericon (also use tokens)
    
    * Fixes console warnings
    
    * Added activity view for activity plan reference page
    
    * Design review changes
    
    * Add HelpText to columns
    
    * Add focus indicator for activity cards
    
    * Minor css tuning
    
    * 🐛 Blogg did not sort latest articles by publishDate
    
    * [Actions] ⚡ Optimize workflows (#3480)
    
    * 🚚 Moved auth-token, fetch less history
    
    * ♻️ Use composite actions for workflow
    
    * 🐛 Checkout before running composite workflow
    
    * 🚚 Move composite actions to separate dir
    
    * ♻️ Pass token to composite action
    
    * 📝 Better test names
    
    * ⚡ Optimize chromatic workflow
    
    * ⚰️ Removed old and broken redeploy action
    
    * ⚡ Optimized website-build
    
    * ♻️ Use composite actions for prod and dev build
    
    * ⚡ Reduced e2e tests by 40%
    
    * ⚡ Improved sandbox testing
    
    * ⚡ Update search-tests
    
    * 🐛 Disable invalid example-demos
    
    * 🐛 Wait for search completion
    
    * 📝 removed old env input
    
    * 🐛 Moved vars out to input
    
    * 🐛 Don't ignore inputs for if-tests
    
    * 🐛 Check input for truuthynes
    
    * test: Run sharded playwright
    
    * 🐛 Removed sharded workflow
    
    * ⚡ Update re-use of actions
    
    * 🐛 Keep full git-history for chroamtic
    
    * Update .github/workflows/chromatic.yml
    
    Co-authored-by: Lars Eirik Korsgaard Hansen <71271458+larseirikhansen@users.noreply.github.com>
    
    * Update .github/workflows/referansesider-spa-deploy.yml
    
    Co-authored-by: Lars Eirik Korsgaard Hansen <71271458+larseirikhansen@users.noreply.github.com>
    
    * Update .github/workflows/ci.yml
    
    Co-authored-by: Lars Eirik Korsgaard Hansen <71271458+larseirikhansen@users.noreply.github.com>
    
    * Update .github/workflows/ci.yml
    
    Co-authored-by: Lars Eirik Korsgaard Hansen <71271458+larseirikhansen@users.noreply.github.com>
    
    * Update .github/workflows/ci.yml
    
    Co-authored-by: Lars Eirik Korsgaard Hansen <71271458+larseirikhansen@users.noreply.github.com>
    
    * Update .github/workflows/ci.yml
    
    Co-authored-by: Lars Eirik Korsgaard Hansen <71271458+larseirikhansen@users.noreply.github.com>
    
    * Update .github/workflows/ci.yml
    
    Co-authored-by: Lars Eirik Korsgaard Hansen <71271458+larseirikhansen@users.noreply.github.com>
    
    * Update .github/workflows/ci.yml
    
    Co-authored-by: Lars Eirik Korsgaard Hansen <71271458+larseirikhansen@users.noreply.github.com>
    
    * 📝 Typo
    
    * 📝 Typoo
    
    * ⚡ Use built-in report for playwright
    
    * 🐛 Use html-reporter, not list
    
    ---------
    
    Co-authored-by: Lars Eirik Korsgaard Hansen <71271458+larseirikhansen@users.noreply.github.com>
    
    * [Darkside] P 1/3 ♻️  Updated `default` scale to replace `neutral`-scale (#3487)
    
    * ✨ Added new space tokens
    
    * 🚚 Updated spacing-definitions
    
    * ✨ Added new space-tokens to old system
    
    * ✨ Added support for new space tokens i primitives
    
    * 🔥 Removed space-tokens from tailwindcss
    
    * 📝 Removed old comments
    
    * [Darkside] Spacing -> Space update for CSS (#3478)
    
    * 🚚 Migrated to new space-token
    
    * 📝 Add docs for temp spacing
    
    * 🐛 Add missing token-prefix to docs
    
    * 🐛 Remove old tests
    
    * 🐛 Added legacy-spacing support for primitives when using new theme-stystem
    
    * ♻️ Move neutral-scale -> default scale
    
    * ♻️ New box now supports updated default tokens
    
    * ♻️ Default -> Soft token
    
    * 📝 Update js-doc
    
    * [Darkside] P 2/3 ♻️ Global/Meta-token naming, bumped role-scale (#3499)
    
    * 💄 Text and border-tokens for roles bumped up
    
    * 📝 Update global and meta-colors to numbers, removed hover color on accordion/button
    
    * [Darkside] P 3/3 ♻️ Old neutral-scale now uses default-scale (#3488)
    
    * ♻️ Use default-tokens for old neutral-scale
    
    * 🐛 Fixed missing token migrations
    
    * ♻️ role default  -> role-soft
    
    * ♻️ Re-structure order and texts for GP section (#3492)
    
    * ♻️ Re-structure order and texts for GP section
    
    * 📝 Avoids extra capitalization for names
    
    * Added script to check version-sync between workspace (#3486)
    
    * ✨ Added script for verifying dep-versions across workspace
    
    * ✨ Added script for verifying dep-versions across workspace
    
    * ✨ Added script for verifying dep-versions across workspace
    
    * ✨ Added script for verifying dep-versions across workspace
    
    * ✨ Added script for verifying dep-versions across workspace
    
    * 📝 Better texts
    
    * 📝 Better texts
    
    * 📝 Added comments
    
    * 📝 Updated minoer package-differences
    
    * 📝 Upgraded stylelint
    
    * 📝 Upgraded babel-loader
    
    * 📝 Add ^ to ds-css versionsing across repo
    
    * ♻️ Small refactor to reduce use of forEach
    
    * Table: Removed border-bottom for HeaderCell used in ExpandableRow (#3503)
    
    * Use HeaderCell for name in expandable table example
    
    * 🐛 Removed border-bottom for HeaderCell used inside ExpandableRow
    
    ---------
    
    Co-authored-by: Ken <ken.aleksander@gmail.com>
    
    * Version Packages (#3505)
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    
    * ♻️ Removed raised-tokens from darkside roles
    
    * 💄 Incremental layout and list-view update on Produktbloggen
    
    * 🐛 Added missing 'li'-tag for list-item in blogglist
    
    * [Table] ExpandableRow `contentGutter`-prop (#3507)
    
    * ✨ New prop contentGutter for ExpandableRow component
    
    * ✨ Added new prop-support in darkside CSS
    
    * 📝 changeset
    
    * Update @navikt/core/react/src/table/ExpandableRow.tsx
    
    Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com>
    
    * 🐛 Third bloggpost was sliced from view on frontpage
    
    * ⬆️ Bump vite from 5.4.8 to 5.4.12 in /examples/referansesider (#3516)
    
    * ⬆️ Bump vite from 5.4.8 to 5.4.12 in /examples/referansesider
    
    Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.8 to 5.4.12.
    - [Release notes](https://github.com/vitejs/vite/releases)
    - [Changelog](https://github.com/vitejs/vite/blob/v5.4.12/packages/vite/CHANGELOG.md)
    - [Commits](https://github.com/vitejs/vite/commits/v5.4.12/packages/vite)
    
    ---
    updated-dependencies:
    - dependency-name: vite
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * Repo-bump vite
    
    * 🔀 Yarn lock
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Ken <ken.aleksander@gmail.com>
    
    * 📝 Added new sidebar category for /komponenter
    
    * always render the maxSelected message when isMultiSelect (#3506)
    
    * always render the maxSelected message when isMultiSelect
    
    * also check if maxSelected is set
    
    * Changeset
    
    * Update .changeset/swift-readers-check.md
    
    ---------
    
    Co-authored-by: Lars Eirik Korsgaard Hansen <71271458+larseirikhansen@users.noreply.github.com>
    Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
    
    * 💄 Error borders uses danger-strong consistently (#3512)
    
    * ♻️ Fix #3451 scaling for 400% zoom (#3514)
    
    * 🐛 Using 'loader' inside 'icon'-prop broke layout caused by position absolute (#3515)
    
    * [Darkside] Quality assurance P1 (#3510)
    
    * 💄 Adjustments 1
    
    * 💄 Bumped default strong scale
    
    * 💄 Bumped secondary neutral border
    
    * 💄 Reduced text-color change on hover
    
    * 🐛 Resolved border and focus logic for combobox
    
    * 🐛 Fix icon sizing for buttons
    
    * 💄 Use tertiary-buttons for datepicker caption
    
    * Update @navikt/core/react/src/chips/Toggle.tsx
    
    * 💄 QA updates combobox darkside (#3511)
    
    * Update swift-readers-check.md
    
    * Version Packages (#3509)
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    
    * Update LICENSE
    
    * [Darkside] Updated Focus design for Checkbox, Radio and Switch  (#3513)
    
    * 💄 Focus-outline now around item checkbox,radio
    
    * 🐛 Resolved small and indeterminate-state
    
    * 💄 updated focus-markings for switch
    
    * Update @navikt/core/css/darkside/form/radio-checkbox.darkside.css
    
    * 🐛 Hide new indeterminate node from old checkbox
    
    * [Darkside] Quality assurance P4  (#3518)
    
    * 💄 Adjust bg transparency
    
    * 💄 Default border now same scale as roles
    
    * [Darkside] Quality assurance P5 (border-radius and font-weight)  (#3519)
    
    * 💄 Update border-radius based on Figma
    
    * 💄 More border-radius adjustments
    
    * 💄 Bolder medium+ headings
    
    * [Darkside] Updated focus-outline (#3520)
    
    * 💄 Updated focus-outline
    
    * 🧪 Added legacy-support for deprecated files
    
    * 🐛 Account for legacy files in count
    
    * [Darkside] Quality assurance P6 (Fileupload) (#3524)
    
    * 📝 Update FileUpload CSS-artifacts
    
    * 🐛 Synced release-text with updated role-colors
    
    * ✨ New icons for sorting (#3528)
    
    * Theming for sykepenge icon
    
    * 🐛 Use correct global token for darkside JS
    
    * Updated SykepengerIcon to be one shape
    
    * Changed text color to subtle
    
    * Layout fixes
    
    * Refactor activity modal and improve rendering of activity details
    
    * Remove the decorator from the activity plan reference page to reduce complexity
    
    It is not necessary to show off dark mode, and it introduces some problems we need to solve.
    Will keep the code, so we can re-introduce it later if we want.
    
    * remove route listing, redirect index.tsx to aktivitetsplan
    
    * re-add the switcher
    
    * resulotions for ds-react, and tweak spacing for header
    
    * Fill out more activity details
    
    * remove unused files + fix up some old tokens
    
    * Darker modal backdrop
    
    * Make JobInterestBox stand out more in dark mode
    
    * Adjust heading size to better preserve hierarchy, although the modal header should have been larger instead (not supported)
    
    * Add gap for better responsiveness on mobile
    
    * Revert to secondary button to not conflict with other primaries. May revisit this later
    
    * Increased Page.Block gutter tokens
    
    * Background softA is now working, so we don't need to check for which is the active theme
    
    * Better responsiveness
    
    * Add "Add new activity" modal
    
    * Reduce texts for responsiveness
    
    * Make "save" button narrower
    
    * 🚧 test deploy cache-invalidation
    
    * 👷 test again
    
    * 💄 remove border under ThemeSwitch
    
    * Delete .changeset/late-hotels-try.md
    
    * Delete @navikt/core/css/darkside/primitives/page.darkside.css
    
    * Revert "Delete @navikt/core/css/darkside/primitives/page.darkside.css"
    
    This reverts commit e1d6838.
    
    * undo the change that will be done on main
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: Vegard Haugstvedt <it.vegard@gmail.com>
    Co-authored-by: Ken <ken.aleksander@gmail.com>
    Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
    Co-authored-by: Lars Eirik Korsgaard Hansen <71271458+larseirikhansen@users.noreply.github.com>
    Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com>
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    9 people authored Feb 4, 2025
    Copy the full SHA
    62aa43b View commit details
  9. [Darkside] Quality assurance P7 (#3530)

    * 💄 Stepper text-colors
    
    * 💄 Adjusted paddings form-summary
    
    * 💄 Alpha-border formsummary
    
    * 🐛 Re-added animation to formprogress
    
    * 💄 moderate active state for button
    
    * ♻️ Copybutton re-uses button-component
    
    * 💄 Updated shadow for lightmode
    
    * 🔥 Removed comments CopyButton
    
    * 📝 Added bw-compatibility for CopyButton
    
    * 🐛 Added default-size for legacy CopyButton
    
    * 🐛 Boolean flipped so that legacy wrapper were used on wrong state
    
    * 🐛 Boolean flipped so that legacy wrapper were used on wrong state
    
    * 🐛 Now accounts for custom icons in legacy CopyButton
    KenAJoh authored Feb 4, 2025
    Copy the full SHA
    75d2f7a View commit details

Commits on Feb 5, 2025

  1. Copy the full SHA
    1c31997 View commit details
  2. [Darkside] Quality assurance P8 (#3536)

    * 💄 Update background Header
    
    * 💄 Update popover padding for smaller screens
    
    * 💄 Adjusted borders
    
    * 💄 Uses Alpha-tokens for zebra-stripes in Table
    
    * 💄 Stronger border for hovered timeline items, transparent track bg
    
    * 💄 Transparent lines for Tabs to contrast colored bg
    
    * 💄 New icons for Table-sorting
    
    * 💄 Selected exoanded item now has accent colors
    
    * 💄 Keeps border-color for active state in search-button
    
    * 💄 Removed hover-color change on checked radio
    
    * 💄 Only non-responsive or left-static guidepanels shrink on tablet or below
    
    * 📝 Changeset
    KenAJoh authored Feb 5, 2025
    Copy the full SHA
    8f9f313 View commit details
  3. [List] Deprecate listprops title, headingTag and description (#…

    …3537)
    
    * 🔥 Deprecated title, headingTag and description for List
    
    * 📝 changeset
    KenAJoh authored Feb 5, 2025
    Copy the full SHA
    2bba7af View commit details
  4. ⏪ remove our custom spa-deploy action

    the feature for cache_invalidation has been merged upstream, so we can use that now.
    JulianNymark committed Feb 5, 2025
    Copy the full SHA
    5492741 View commit details

Commits on Feb 6, 2025

  1. [Darkside] MVP documentation for testing (#3551)

    * 📝 Setup docpage
    
    * 📝 Setup page for docs
    
    * 📝 Setup page for docs
    
    * 📝 React-docs
    
    * 📝 Clarify docs
    
    * 📝 Token-docs
    
    * 📝 Added changelog page
    
    * 🔥 Removed references to static tokens
    
    * 📝 Updated docs
    
    * 📝 Updated migration
    
    * 📝 Removed placeholder docs
    
    * 📝 Use built-in color docs
    
    * 📝 Second draft temp-docs
    
    * 📝 Add feedback links, remove old css
    
    * 📝 Updated docs
    
    * Update .storybook/docs/PilotMigration.mdx
    
    Co-authored-by: Vegard Haugstvedt <it.vegard@gmail.com>
    
    ---------
    
    Co-authored-by: Vegard Haugstvedt <it.vegard@gmail.com>
    KenAJoh and it-vegard authored Feb 6, 2025
    Copy the full SHA
    e06f0c6 View commit details
  2. Copy the full SHA
    fb5af09 View commit details
  3. Copy the full SHA
    70dd5b5 View commit details
  4. [Darkside] 🚚 -hover tokens are now soft-hover (#3553)

    * 💄 Update background Header
    
    * 💄 Update popover padding for smaller screens
    
    * 💄 Adjusted borders
    
    * 💄 Uses Alpha-tokens for zebra-stripes in Table
    
    * 💄 Stronger border for hovered timeline items, transparent track bg
    
    * 💄 Transparent lines for Tabs to contrast colored bg
    
    * 💄 New icons for Table-sorting
    
    * 💄 Selected exoanded item now has accent colors
    
    * 💄 Keeps border-color for active state in search-button
    
    * 💄 Removed hover-color change on checked radio
    
    * 💄 Only non-responsive or left-static guidepanels shrink on tablet or below
    
    * 📝 Changeset
    
    * 🚚 -hover tokens are now soft-hover
    
    * 🚚 Referansesider uses new soft-hover token
    KenAJoh authored Feb 6, 2025
    Copy the full SHA
    281ac2d View commit details
  5. [Darkside] Soft-pressed token (#3554)

    * 💄 Update background Header
    
    * 💄 Update popover padding for smaller screens
    
    * 💄 Adjusted borders
    
    * 💄 Uses Alpha-tokens for zebra-stripes in Table
    
    * 💄 Stronger border for hovered timeline items, transparent track bg
    
    * 💄 Transparent lines for Tabs to contrast colored bg
    
    * 💄 New icons for Table-sorting
    
    * 💄 Selected exoanded item now has accent colors
    
    * 💄 Keeps border-color for active state in search-button
    
    * 💄 Removed hover-color change on checked radio
    
    * 💄 Only non-responsive or left-static guidepanels shrink on tablet or below
    
    * 📝 Changeset
    
    * 🚚 -hover tokens are now soft-hover
    
    * ✨ Added soft-pressed token
    
    * 💄 Use new soft-pressed token where applicable
    
    * 🚚 Referansesider uses new soft-hover token
    KenAJoh authored Feb 6, 2025
    Copy the full SHA
    83490d4 View commit details
  6. [Darkside] Default role-text is now 1000, strong replaced by subtle (#…

    …3555)
    
    * 💄 Update background Header
    
    * 💄 Update popover padding for smaller screens
    
    * 💄 Adjusted borders
    
    * 💄 Uses Alpha-tokens for zebra-stripes in Table
    
    * 💄 Stronger border for hovered timeline items, transparent track bg
    
    * 💄 Transparent lines for Tabs to contrast colored bg
    
    * 💄 New icons for Table-sorting
    
    * 💄 Selected exoanded item now has accent colors
    
    * 💄 Keeps border-color for active state in search-button
    
    * 💄 Removed hover-color change on checked radio
    
    * 💄 Only non-responsive or left-static guidepanels shrink on tablet or below
    
    * 📝 Changeset
    
    * 🚚 -hover tokens are now soft-hover
    
    * ✨ Added soft-pressed token
    
    * 💄 Use new soft-pressed token where applicable
    
    * 💄 Default colored text is now 1000, strong replaced by subtle
    
    * 🏷️ Updated primitive types for new text-tokens
    
    * 🚚 Migrated old text-role-strong color to text-role-default
    
    * 🚚 Migrated referansesider to new text-colors
    
    * 🚚 Referansesider uses new soft-hover token
    
    * 🐛 Fallback to updated accent-color
    
    * [Darkside] Removed 'base' as neutral role replacement (#3556)
    
    * ♻️ Remove default-scale as replacement for neutral in config
    
    * 🧪 Setup chromatic-run for complete build
    
    * 🚚 Text migrated
    
    * 🚚 Text icon migrated
    
    * 🚚 Text contrast migrated
    
    * 🚚 bg soft migrated to neutral
    
    * 🚚 bg moderate migrated to neutral
    
    * 🚚 bg strong migrated to neutral
    
    * 🚚 border default migrated to neutral
    
    * 🚚 border subtle migrated to neutral
    
    * 🚚 border strong migrated to neutral
    
    * ⬅️ Revert chromatic preview
    
    * 🚚 Migrated referansesider to new neutral scale
    KenAJoh authored Feb 6, 2025
    Copy the full SHA
    2558874 View commit details
  7. [Darkside] Named brand-color tokens (#3559)

    * 💄 Update background Header
    
    * 💄 Update popover padding for smaller screens
    
    * 💄 Adjusted borders
    
    * 💄 Uses Alpha-tokens for zebra-stripes in Table
    
    * 💄 Stronger border for hovered timeline items, transparent track bg
    
    * 💄 Transparent lines for Tabs to contrast colored bg
    
    * 💄 New icons for Table-sorting
    
    * 💄 Selected exoanded item now has accent colors
    
    * 💄 Keeps border-color for active state in search-button
    
    * 💄 Removed hover-color change on checked radio
    
    * 💄 Only non-responsive or left-static guidepanels shrink on tablet or below
    
    * 📝 Changeset
    
    * 🚚 -hover tokens are now soft-hover
    
    * ✨ Added soft-pressed token
    
    * 💄 Use new soft-pressed token where applicable
    
    * 💄 Default colored text is now 1000, strong replaced by subtle
    
    * 🏷️ Updated primitive types for new text-tokens
    
    * 🚚 Migrated old text-role-strong color to text-role-default
    
    * 🚚 Migrated referansesider to new text-colors
    
    * 🚚 Referansesider uses new soft-hover token
    
    * 🐛 Fallback to updated accent-color
    
    * [Darkside] Removed 'base' as neutral role replacement (#3556)
    
    * ♻️ Remove default-scale as replacement for neutral in config
    
    * 🧪 Setup chromatic-run for complete build
    
    * 🚚 Text migrated
    
    * 🚚 Text icon migrated
    
    * 🚚 Text contrast migrated
    
    * 🚚 bg soft migrated to neutral
    
    * 🚚 bg moderate migrated to neutral
    
    * 🚚 bg strong migrated to neutral
    
    * 🚚 border default migrated to neutral
    
    * 🚚 border subtle migrated to neutral
    
    * 🚚 border strong migrated to neutral
    
    * ⬅️ Revert chromatic preview
    
    * 🚚 Migrated referansesider to new neutral scale
    
    * 🚚 Use named brand and meta-colors
    
    * 🚚 Referansesider uses new brand-names token
    KenAJoh authored Feb 6, 2025
    Copy the full SHA
    ae02a87 View commit details
  8. Copy the full SHA
    aefbf3e View commit details
  9. Copy the full SHA
    29798d8 View commit details
  10. pilot text edits (#3560)

    * pilot text edits
    
    * pilots edits
    JulianNymark authored Feb 6, 2025
    Copy the full SHA
    cea27a8 View commit details
  11. Copy the full SHA
    2a26dc5 View commit details
  12. Copy the full SHA
    bb02aa9 View commit details
  13. Copy the full SHA
    a10e2a5 View commit details
  14. Version Packages (#3557)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Feb 6, 2025
    Copy the full SHA
    af39cbd View commit details
  15. Copy the full SHA
    11b1e98 View commit details
  16. Copy the full SHA
    f269311 View commit details
  17. Version Packages (#3562)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Feb 6, 2025
    Copy the full SHA
    c1e6bcc View commit details
  18. Copy the full SHA
    8576400 View commit details
  19. Version Packages (#3563)

    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    github-actions[bot] and github-actions[bot] authored Feb 6, 2025
    Copy the full SHA
    1b20ad5 View commit details
  20. [Aksel.nav.no] Added Hello bar under header (#3561)

    * ✨ Added hello-bar
    
    * 📝 Updated texts
    
    * 🔥 Removed demo-versions
    
    * 💄 Added x-axis padding
    KenAJoh authored Feb 6, 2025
    Copy the full SHA
    0c22de8 View commit details

Commits on Feb 7, 2025

  1. Copy the full SHA
    2271072 View commit details
  2. Copy the full SHA
    36f8445 View commit details
  3. Pilot docs edits (#3567)

    * pilot text edits
    
    * pilots edits
    
    * pilot doc edits
    
    * pilot doc edits
    
    * update pilot docs
    JulianNymark authored Feb 7, 2025
    Copy the full SHA
    1ec3452 View commit details
  4. Copy the full SHA
    dfbec99 View commit details

Commits on Feb 10, 2025

  1. Copy the full SHA
    0d886b1 View commit details

Commits on Feb 11, 2025

  1. [Darkside] Added role-theming (#3569)

    * ✨ Added themed roles config to darkside
    
    * ♻️ Rename breakpint config
    
    * 🐛 Update renamed import
    
    * 🐛 Build theme-files before readig them
    
    * 🐛 Updated breakpoint-import in test-files
    KenAJoh authored Feb 11, 2025
    Copy the full SHA
    94e3bd7 View commit details

Commits on Feb 12, 2025

  1. Darkside role theming refactor (#3575)

    * ✨ Added themed roles config to darkside
    
    * ♻️ Rename breakpint config
    
    * 🚚 Move files
    
    * 🐛 Update renamed import
    
    * 🐛 Build theme-files before readig them
    
    * ♻️ Refactored color-tokens setup
    
    * ♻️ Updated setup and imports
    
    * ♻️ Hide unwanted tokenfiles
    
    * 🐛 Update imports for refactored colors
    
    * 📝 Clarify tests
    
    * 📝 config -> configs
    KenAJoh authored Feb 12, 2025
    Copy the full SHA
    5586d42 View commit details
  2. Copy the full SHA
    4dcb4ef View commit details
  3. Copy the full SHA
    6201d87 View commit details

Commits on Feb 13, 2025

  1. Copy the full SHA
    90f7649 View commit details
  2. [Darkside] Tailwind support (#3580)

    * 📝 Test config
    
    * ✨ Added prefix-support, export for npm
    
    * 📝 Added changeset, removed test-config
    
    * 🐛 Removed conveluted tests
    
    * 📝 Added temp-docs
    
    * 📝 Added tailwind version suffix to export
    KenAJoh authored Feb 13, 2025
    Copy the full SHA
    c6424ed View commit details
  3. ✨ Icon-update (#3583)

    KenAJoh authored Feb 13, 2025
    Copy the full SHA
    636eb05 View commit details
  4. [Darkside] Added hook for renaming className-prefix from navds-> `a…

    …ksel-` (#3585)
    
    * ✨ MVP replacement function
    
    * ✨ Updated className replace function
    KenAJoh authored Feb 13, 2025
    Copy the full SHA
    1cc24c2 View commit details
  5. Copy the full SHA
    e5dc975 View commit details
  6. [Aksel.nav.no] ✨ Highlights 'darkside' sections in sidebar (#3582)

    * ✨ Highlights 'darkside' sections in sidebar
    
    * 🔥 removed test-code
    
    * Update aksel.nav.no/website/components/website-modules/menu/Menu.tsx
    
    ---------
    
    Co-authored-by: Julian Nymark <julian.nymark@nav.no>
    KenAJoh and JulianNymark authored Feb 13, 2025
    Copy the full SHA
    2f7873d View commit details
Showing 768 changed files with 57,907 additions and 13,612 deletions.
5 changes: 5 additions & 0 deletions .changeset/smart-cases-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@navikt/ds-tokens": patch
---

Darkside: Update global 'meta-purple' color.
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -92,6 +92,13 @@ module.exports = {
],
},
},
{
files: ["**/app/**/query-types.ts"],
extends: ["plugin:@typescript-eslint/recommended"],
rules: {
"@typescript-eslint/array-type": "off",
},
},
{
files: ["**/*.test.*", "**/__tests__/*"],
plugins: ["@vitest"],
@@ -179,6 +186,8 @@ module.exports = {
"esm",
"cjs",
"dist",
"@navikt/aksel/**/*.input.*",
"@navikt/aksel/**/*.output.*",
"**/codemod/**/*.js",
"!.storybook",
"**/playwright-report/**",
10 changes: 10 additions & 0 deletions .github/actions/build-website/action.yml
Original file line number Diff line number Diff line change
@@ -19,6 +19,10 @@ inputs:
sanity_read_no_drafts_token:
description: "Sanity read-only token allowing only published documents"
required: true
production:
description: "Toggle to differentiate production build (inject stuff based on this)"
default: false
required: false

runs:
using: "composite"
@@ -38,6 +42,12 @@ runs:
echo "USE_CDN_ASSETS=true" >> aksel.nav.no/website/.env
shell: bash

- name: Set production env var
if: ${{ inputs.production == 'true' }}
run: |
echo "PRODUCTION=true" >> aksel.nav.no/website/.env
shell: bash

- name: Build Next.js website
run: yarn build:next
env:
2 changes: 1 addition & 1 deletion .github/workflows/aksel-dev.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ on:
jobs:
build_and_deploy:
name: Build and deploy to dev-gcp
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
packages: "write"
contents: "read"
1 change: 1 addition & 0 deletions .github/workflows/aksel-prod.yml
Original file line number Diff line number Diff line change
@@ -46,6 +46,7 @@ jobs:
uses: ./.github/actions/build-website
with:
use_cdn_assets: true
production: true
npm_auth_token: ${{ secrets.READER_TOKEN }}
nais_id_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
nais_project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
1 change: 1 addition & 0 deletions .github/workflows/referansesider-spa-deploy.yml
Original file line number Diff line number Diff line change
@@ -35,3 +35,4 @@ jobs:
environment: dev
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
cache_invalidation: true
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ jobs:
cache: yarn
cache-dependency-path: "**/yarn.lock"

- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: v1.x

2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
**/nais*.yaml
**/nais*.yml
**/codemod/**/tests/**/*.js
**/@navikt/aksel/**/*.input.*
**/@navikt/aksel/**/*.output.*
node_modules
.next
dist
111 changes: 111 additions & 0 deletions .storybook/docs/PilotMigration.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
import { Markdown, Meta } from "@storybook/blocks";

<Meta title="Docs/Become a Pilot team/3.Migration" />

# Migration

## Tokens

[See tokens docs here](https://main--66b4b3beb91603ed0ab5c45e.chromatic.com/?path=/docs/docs-become-a-pilot-team-4-tokens--docs).

## CSS

- Most of our CSS is re-written. This includes renaming all `.navds`-classNames to `.aksel`. This will affect most custom overrides targeting `.navds`-classes.

As we strongly recommend avoiding custom
overrides where possible, we would like to encourage opening an
issue if you find that you have to override our CSS to achieve
something! It's these cases we want to know about so that we can fix
them for everyone.

### Removed component-tokens

All component-spesific tokens are no longer supported. That means all tokens like these from `Button` are removed:

```css
--ac-button-primary-bg
--ac-button-primary-text
--ac-button-primary-hover-bg
--ac-button-primary-active-bg
```

All component-based tokens are prefixed with `--ac`, so a global search in your codebase should find all of them.

## Tailwind CSS

Since our Tailwind CSS config is tied to our tokens, most changes made to the tokens will affect the Tailwind CSS config.
We have decided to prefix all our classes with `ax-` in the new config, so it should be possible to use both packages at the same time. We will develop tooling to hopefuly make the migrations easier in the future.

### Removed classes

z-index, maxWidth and spacing classes are removed from the new config.

## React

We have made some updates to `@navikt/ds-react` that you should be aware of before testing.

### Accordion

#### Props

- `variant` is deprecated and will be removed in the future. We have not implemented it in the new system.
- `headingSize` is deprecated and will be removed in the future. Accordion-size medium now equals `small` heading, and size small equals `xsmall` heading.

#### Structural changes

`<Accordion.Content/>` now has an extra nested `div` to allow for better animations. Custom CSS might break.

### Datepicker

Weeknumber-button uses our own button-component, and no longer a
custom button.

### GuidePanel

Component got a complete overhaul. Custom overrides might break.

### Popover, HelpText

`arrow`-prop is removed. All of our floating dialog-elements except for `Tooltip` now comes without arrow.
If you have custom `offset`-values, you might have to update them to accommodate this.

### Pagination

Button now uses our own button-component and `variant="tertiary-neutral".

### Primitives

Given that these are closely tied to our tokens, you will most
likely have to update parts of them to test the new system.

All primitives using our current `spacing`-tokens now has
the new <code>space</code>-tokens. You can use the old tokens while
testing, but the full release will remove them from the prop-list

<Markdown>
{`
\`\`\`diff
- <HStack gap="4">
+ <HStack gap="space-16">
\`\`\`

`}

</Markdown>

#### Page

`background`-prop is removed. Now just uses `bg-default`-token.

#### Box

Since `<Box />` is directly tied to our tokens, we
now offer `<Box.New />` as a temporary altenative. This
component is based on our new tokens and can use the backgrounds,
borders, border-radius and shadows from the new system. When the full release comes, we will update `<Box />` to use the new system, and provide tooling to handle this migration.

**All instances of `<Box />` will break when using the new system if:**

- `background`-prop is used
- `shadow`-prop is used
- `borderColor`-prop is used
151 changes: 151 additions & 0 deletions .storybook/docs/PilotSetup.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
import { Markdown, Meta } from "@storybook/blocks";

<Meta title="Docs/Become a Pilot team/2.Setup" />

# Setup

## Clean project

For new projects, setup is just as easy as before, but now requires a `Theme`-component to be wrapped around your app.
The component acts as a local feature-flag for the new implementation, with the added benefit of being able to switch between light and dark mode for you.

Steps:

- 1. Import new CSS `@navikt/ds-css/darkside`
- 2. Import `Theme`-component from `@navikt/ds-react/Theme`
- 3. Wrap your app in the `Theme`-component. You do not have to set the theme, but it defaults to `light`.

```tsx
import "@navikt/ds-css/darkside";
import { Theme } from "@navikt/ds-react/Theme";

export const App = () => (
<Theme theme="light">
<YourApp />
</Theme>
);
```

### Only Tokens/CSS

If you are not using any of our React-components, you can still switch between themes by setting `class="light"` or `class="dark"` on your root-element.

## Theme switching

The `Theme`-component has a `theme`-prop that can be set to either `light` or `dark`. This only sets a `class` on the element of `light` or `dark` (in addition to a `aksel-theme` class), and the rest is handled by the CSS.

You have the option of using `hasBackground` (defaults to true) to make `Theme` include a built on default background.

Since theme-switching often is framework-spesific, we have not included a theme-toggle component or advanced logic for cookies/localstorage.
You will have to implement this yourself using a custom setup, or use a library like [next-themes](https://github.com/pacocoursey/next-themes).

We will continue to work on the whole `Theme` ecosystem, and might include more features in the future to handle this built in.

### Theme-switch component

This is context-based for what fits your application, but there are some general patterns you can follow.

- **Light or Dark-mode**: Here you can use a simple Switch-component, or a Tertiary-button to toggle between them.

- **Light, Dark or System-mode**: Here you can use a ToggleGroup or Select-component.

```tsx
isLightMode ? (
<Button
variant="tertiary-neutral"
icon={<SunIcon title="Switch to dark theme" />}
/>
) : (
<Button
variant="tertiary-neutral"
icon={<MoonIcon title="Switch to light theme" />}
/>
);
```

## I just want to test the new tokens

Since you can use the new tokens alongside the old tokens, you can start by importing the new tokens as you would the old system.

```css
@import "@navikt/ds-tokens/darkside-css";
```

For SCSS, Less and JS they are also available under the paths

```
@navikt/ds-tokens/darkside-scss
@navikt/ds-tokens/darkside-less
@navikt/ds-tokens/darkside-js
```

**Note: To support theming, scss, less and js tokens are all now based on `css-variables`. This means you will have to import the css-version from `darkside-css` alongside them for everything to work.**

## I want to test the new React-changes

For the new system to work with our components, you will have to use the new `Theme`-component, and import the new CSS from `@navikt/ds-css/darkside`

```tsx
import "@navikt/ds-css/darkside";
import { Theme } from "@navikt/ds-react/Theme";

export const App = () => (
<Theme theme="light">
<YourApp />
</Theme>
);
```

You will have to check on all your custom overrides when making this switch.

### Partial update

You can migrate parts of your application to use the new CSS classes without having to migrate everything at once.

```tsx
// Old setup
import "@navikt/ds-css/darkside";
// New setup
import "@navikt/ds-css/darkside";
import { Theme } from "@navikt/ds-react/Theme";

export const App = () => (
<div>
<StillOnOldCSSComponent>
/* Only this part of your app now uses new styling */
<Theme>
<YourApp />
</Theme>
</div>
);
```

You will have to check on all your custom overrides when making this switch.

## I have to make some custom changes in darkmode

Since our implementation is based on CSS, you can easily make custom adjustments where necessary.

```css
.my-component {
background-color: var(--ax-bg-raised);
color: var(--ax-text-neutral);
border: 1px solid var(--ax-border-neutral-subtleA);
}

// Makes hover-state more visible only for darkmode
.dark .my-component {
&:hover {
border-color: var(--ax-border-accent-default);
}
}
```

## Tailwind CSS

```
// Tailwind v3
module.exports = {
presets: [require("@navikt/ds-tailwind/darkside-tw3")],
}
```
28 changes: 28 additions & 0 deletions .storybook/docs/PilotsChangelog.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Meta, Title } from "@storybook/blocks";

<Meta title="Docs/Become a Pilot team/5.Changelog" />

# Darkside changelog

## v7.16 (03.03.25)

To allow loading old and new CSS files that the same time, we have now renamed all classes to start with `.aksel` instead of `.navds`.
Every React component has this now feature-flagged behind using the new `Theme`-component.

- **With `<Theme />`**: All components uses `.aksel`-classes internally.
- **Without `<Theme />`**: All components uses `.navds`-classes internally like before.

This means you can now migrate parts of your application to use the new CSS classes without having to migrate everything at once.

```
// MyComponent.tsx
<div>
// Uses old CSS
<Button>Click me</Button>
// Uses new CSS
<Theme>
<Button>Click me</Button>
</Theme>
</div>
```
Loading