Dette gjør det mulig å conditionally rendre barn i ErrorSummary. For eksempel kan man nå gjøre:
```
const shouldShow = false
return (
<ErrorSummary>
{shouldShow && <ErrorSummary.Item href="#id1">Jeg er en feilmelding, men vises ikke</ErrorSummary.Item>}
<ErrorSummary.Item href="#id2">Jeg er en feilmelding som vises!</ErrorSummary.Item>
</ErrorSummary>
)
```
* WIP preview resolving
* 🐛 Fikset preview på maler med sidebar
* 🎨 Restrukturert preview-provider
* 🚚 Flyttet inn i parts
* 🎨 Bedre resolving av nested types
* 🎨 Better documentation
* 🎨 Bruker nye resolvers for preview
* 🐛 Henter nå nested data
* ✅ La til tester
* 🚧 playroom
testing it out, needs yarn run playroom:build before yarn dev (in aksel.nav.no)
* 🚧 width and height for iframe
* 🚚 move playroom into its own module
* 🚧
* 🐛 Fikset lasting av ts-filer
* build playroom & copy dist to public/
* 🚧 yarn maintenance
* 🚧 build the playroom before copy
* ✨ now examples might work in the sandbox? maybe 90% of them?!
* ✨ + 🔥 + ♻️
- remove route for /sandbox, in public/ means it gets served regardless?
- for each code example:
- use jscodeshift to remove imports
- also transpile to ESNext
- bump jscodeshift to 0.15.1 (for all uses)
- the sandbox button now sends you to /sandbox/index.html
* :refactor: j -> parse
* add non-ideal string replacer to make Examples work in Playroom
* ♻️ bring back CodeSandox link as fallback
* 🚚 Sandbox -> parts/Sandbox
* 🚚🚚 Sandbox -> parts/Sandbox
* seemingly working smoke tests for all sandbox examples
* ♻️ shuffle example code to work well with playroom
* ♻️ shuffle example code to work in sandbox (again)
* update sanity eksempler, do base64 url code work there
* PR comment fixes
* 📝 Sanity-schema for sandbox-snippets
* 🚚 generic cubeIcon -> codesandboxLogo
* 🔥 unused prop
* ♻️ do not run all tests in smoketest
* 🐛 pr comment fixes
* PR comment fixes, remove unneeded domcontentloaded await in tests
* ♻️ restructure so <Example> comes first
* 🐛 sandbox tests now for templates and examples
* 🐛 Fikset imports
* 🐛 disable some sandbox tests (for templates)
* 🐛 forgot to disable one template test
---------
Co-authored-by: Ken <ken.aleksander@gmail.com>
* 🚚 Oppdatert layout exports
* ⚡ Nextjs-config kan nå bruke webpack-builder
* 🐛 reverserte til gammel image-config i next.config
* 🚚 Oppdaterte assets exports
* 🚚 Fjernet barrel-exports av komponenter
* 🚚 Flyttet types
* 🚚 Flyttet sanityblock og withpreview
* 🚚 Flyttet styles inn i components
* ♻️ Forenklet jest-config
* 🚚 Flyttet logger
* ⚡ Kjører nå ikke middleware på alle side
* ♻️ next config analyze setup
* 🔥 fjernet getdocumentstmp
* 🔥 Fjernet getAkselDocuments
* 🎨 Forenklet imagebuilder
* ♻️ Fjernet ubrukte tailwind configs
* 🎨 Grupperer changelog med minor
* 🔥 Fjernet duplicate changelog
* 🎨 Ny ts alias
* ♻️ Refactor av utils dir
* ♻️ Header er nå default export
* ♻️ Byttet ut deprecated ingress med bodylong
* ♻️ Oppdatert assets export/imports
* ♻️ Oppdatert website/sanity imports
* 🐛 henter ut logger i dockerfile
* ⚡ Enda mer filtrering i middleware
* 🐛 Riktig generering av sider for e2e-sider
* 🐛 Fikset import i codeexamples update
* 🐛 la til mønster og maler i hamburgermeny
* [aksel.nav.no] Legg til RSS feed på produktbloggen
* Adjust generateRssFeed to accept a path parameter
* 🎉 Oppdatert generering av rss
---------
Co-authored-by: Anders Olsen Sandvik <github@mlsv.no>
* 🎉 Sanity-schema for mønster og maler
* 🎨 La til mønster og maler i sanity structure
* 🎨 Støtte for templates i søk
* 🎨 Sidemaler for Mønster og Maler
* 🎨 Riktig håndtering av breadcrumbs
* 🐛 Fikset story
* 🐛 Fikset search-indeksering
* 🐛 Fikset search-test
* 🐛 Fikset typo
* [aksel.nav.no] Refaktorert synking av eksempler/templates mellom kode og sanity (#2442)
* 🎨 Template pages
* 🔥 Fjernet templates fra logging
* ♻️ Refaktorert example-generering
* ✅ extractArgs tests
* ✅ filter-code tester
* ✅ Ny code-parsing tester
* 🚚 Flyttet filer
* 🎨 Oppdaterer sanity remote
* 🎨 sanity schema for templates
* 🎨 Schema for metadata in templates
* 🎨 henter nå ut metadata fra templates
* 🎨 Flyttet createId funksjon
* 🚚 rename folder
* 🎨 schema for templates i sanity
* 🐛 Fjernet dryrun fra oppdatering
* 🎨 Make sure to delete old documents after updating
* 🐛 Riktige typer for version-schema
* [aksel.nav.no] Integrert mønster og maler templates inn på aksel (#2447)
* 🎨 Template pages
* 🔥 Fjernet templates fra logging
* ♻️ Refaktorert example-generering
* ✅ extractArgs tests
* ✅ filter-code tester
* ✅ Ny code-parsing tester
* 🚚 Flyttet filer
* 🎨 Oppdaterer sanity remote
* 🎨 sanity schema for templates
* 🎨 Schema for metadata in templates
* 🎨 henter nå ut metadata fra templates
* 🎨 Flyttet createId funksjon
* 🚚 rename folder
* 🎨 schema for templates i sanity
* 🐛 Fjernet dryrun fra oppdatering
* 🎨 Make sure to delete old documents after updating
* 🐛 Riktige typer for version-schema
* 🎨 Kan nå vise eksempler på side
* 🎨 Automatisk visning av changelog
* 📝 typo
* 📝 Rename fra changelog til Endringer
* 🐛 Fikset story-typer
* 🎨 Forsideblokk for templates
* 🐛 feil riktekst ble brukt
* Add new useVirtualFocus hook, for use in Combobox. Might be useful for other components later, but will scope it for Combobox at first.
* Create filteredOptionsUtils, which has utiltity functions for creating IDs and for text lookups in lists.
* Get rid of data-value, and use filteredOptionsMap to look up the value of the currently (virtually) focused element instead
This allows use of e.g. numbers as options, which data-value didn't.
* Using useState instead of useRef to handle filteredOptionsRef
* Added changeset
* Force option id to be lower case, to avoid different casing from being interpreted as being different from the existing options
* Fix bug where it was not possible to select multiple custom (new) options in a multiselect
selectedOptionsContext is not available inside customOptionsContext, so need to take isMultiSelect from props instead
* Switch to use toLocalLowerCase and remove uneccessary use of string literal
* type mismatch
* Clean up types - reuse from ComboboxProps type definition, and fix resulting type mismatches
* Rename filteredOptionsRef variable returned from filteredOptionsContext to reflect that it is now actually a setState-function
* Expose virtualFocus as an object through filteredOptionsContext, instead of each separate method.
Done to remove need to wrap moveFocusUp and moveFocusDown in order to toggle isListOpen
* AutoComplete should keep upper-/lowercase from the word being autocompleted
* Fix issue where autocomplete doesn't format the casing of the last character in the word
* Added changeset
* Append the autocompleted text in the same casing used in the list, but preserve casing for the typed characters
* Preserve casing used while typing, then use the casing from the options when selecting a value
* Added custom options to test of casing when typing
* Correct changeset
* When allowNewValues is enabled, we should use the new value as is when pressing Enter, instead of using the first FilteredOption
* Change test case to use a partial match for a word in options. This tests both that we will use "add new" option if available and that we preserve casing for new options
* ♻️ Refaktorert logging
* ♻️ Refaktorert logging
* 🔥 No need to lazyload hotjar
* 🐛 Sjekker nå produrl riktig
* ♻️ Bedre import/export av logging
* ✨ Batching evets logged pre-init
* ♻️ Cleanup av amplitude bruk
* Fiks skrivefeil på size-klasse på select-komponent
* Fiks skrivefeil på size-klasse på form-komponenter
* 📝 changeset
---------
Co-authored-by: Ken <ken.aleksander@gmail.com>
* 🎨 Oppdatert prop-dokumentasjon
* 🎨 Oppdatert prop-dokumentering
* 📝 Bedre tekster
* support .env.local and fix typo
* 🔥 Fjernet dryrun
* fix type in List
* 🎨 Bedre håndtering av error
* 🎨 Bedre preview av props når de blir referert til
* 📝 La til throw error
---------
Co-authored-by: Halvor Haugan <halvor.haugan@nav.no>
* Added aria-hidden to AccordionContent when closed
Fixes bug where label text for Radio components is sometimes left out of the accessibility tree when being hidden/displayed by an Accordion
Ref: https://nav-it.slack.com/archives/C7NE7A8UF/p1695723000232659
* Added changeset
* Add a Storybook-example to be able to test this bug
* Remove tabIndex="-1" for Popover component, to fix VoiceOver bug where navigation inside the Popover doesn't work.
This affects Datepicker, Dropdown, Timeline and the Popover components, but appears to cause no bugs.
Ref: https://nav-it.slack.com/archives/C7NE7A8UF/p1694158816166729
* Add changeset
* Might not be the best way, but it works. getFloatingProps added it's own tabIndex="-1", which we need to get rid of.
* Seems like getFloatingProps can take "tabIndex: undefined" as an option, reducing the amount of code we need to change.
* initial box (heavily inspired by shopify Box)
* 🎨 Theming-demo
* rm printHidden prop
* sr-only: clip is deprecated, adding clip-path
* setting up padding story box primitive
* 95% complete padding example for Box (dynamic css code unfolding with types)
* WIP on padding/margin for box
* working box padding/block/inline/margin?
* remove console.log
* story for Box, copy implementation from padding to apply to margin as well
* remove unwanted props on Box
* refactor semantic-colors.json, use json import for types in Box.tsx
* squashme
* Box: working border & background
* 🔥 remove props on Box we will not implement in v1
* refactoring / less things needed (no margin) and things that are broken show up in stories
* 🐛 fix erroneous padding assignment (a flipped index)
* fully recreated LinkPanel
* box: add all borderRadius props
* box: complete example for chat bubbles
* 📝 refactor box hover props to be an object instead
* checkout main yarn.lock
* yarn changeset
* 📝 add jsdoc for Box
* 📝 add token documentation
* 🚧 Box: add barrel file
* 🔥 remove overriding tokens for Box
* ♻️ refactor the borderRadius API
* 🔥 remove console.logs
* bump ts version (make them all equal)
* fix new type error that surfaced when upgrading TS
* add yarn.lock
* 🚧 testing with older TS version again
* Revert "🚧 testing with older TS version again"
This reverts commit ca09f3c419.
* add minimum permissions check utility (official github action)
* Revert "add minimum permissions check utility (official github action)"
This reverts commit f9dd5ea436.
* test with "read-all|write-all" for a chromatic.yml action
* remove unused comments
* 🚧 try skip a test suite
* Revert "🚧 try skip a test suite"
This reverts commit ccf4711c25.
* 🚧 update all node-version to 19
* 💥 Force-tester GHA
* 💥 bump node-version to 20
* 💥 test with jsonModules again, but this time with node v20
* 🚧 revert type erasure (for tests)
* 🔥 remove hover from Box
* 🚧 test with module identifier import
* 🚧 squashme
* a working token type solution
* 📝 group Primitives in storybook
* no longer assert type, hint instead
* 📝 improve jsdoc for Box
* 📝 improve jsdoc for Box
* 🚧 test relative import for github action
* 🚧 test ordering of yarn builds
* 🚧 test ordering of yarn workspaces
* 🚧 test dependency for yarn workspaces
* 🐛 fix human error in token refactoring
* 📝 reword jsdoc
* ♻️ refactor
* 🚧 test again with module identifier import
* squashme
* 🚧 fully revert to importing .json
* 🚧 remove duplicate types
* 🔥 remove style-dicitonary format (now unused), fix shadow.json refs
* remove devDependency on tokens (for react)
* 📝♻️ update comments & naming
* 🚚 Oppdatert CSS-config etter ny primitives gruppering
* make border-color also control border-style
* add examples for Box to aksel.nav.no
* ⬆️ Yarn sort av dependencies
* 🎨 BorderWidth tokens
* 🎨 Css for borderRadius
* 🎨 Setup responsiveRadius utility
* ♻️ Forenklet borderRadius
* 🎨 refactor padding in box
* 🔥 Fjernet unødvendig kode
* 🎨 Oppdatert token for borderWidth
* 🐛 Default 0px border
* 🏷️ Refactor types
* 🐛 Fikset stories
* ♻️ refactor away one of the getResponsiveProps(), renaming
* ♻️ refactor + add token exceptions
* 🐛 new props based on BoxProps
* 📝 Oppdatert box-eksempler
* 📝 border-eksempler
* 📝 shadow-eksempel
* 📝 header demo
* 🔥 Fjernet theming demo, la til panel-demo
* 🚚 Flyttet show/hide inn i primitives
* 🚚 extract stateful colors to separate files
* 🚚 move shadow stateful tokens as well
* ♻️ rename some Box types
* 🚚 re-add missing token
* 🚚 move types file to utils, (bonus: fix some jsdoc)
* ➕ add @navikt/ds-tokens to react
* Update .changeset/happy-pianos-cheat.md
* ✨ Setup new primitives
* 🎨 Basic bleed and contentbox styling
* 🎨 Demo-story
* 🎨 Oppdatert demo
* 🎨 Oppdatert avatarpanel
* 💄 Finjustert page-layout
* 💄 Mobiltilpasset innhold
* 🔥 Fjernet bleed
* 🚚 Flyttet contenbox inline
* ⬆️ yarn synk
* 🔥 fjernet changeset
---------
Co-authored-by: Julian Nymark <julian.nymark@nav.no>
Co-authored-by: Lars Hansen <lars.eirik.korsgaard.hansen@nav.no>
* 🎨 withsidebar story
* 🔥 Fjernet withToc-prop
* 🚚 Flyttet header/footer til sidedefinisjoner
* 🚚 Flyttet headercube nederst i fil
* 🔥 Fjernet unødvendig minheight
* 🐛 Fikset sideideksering av ikoner
* ♻️ SEO trukket ut til egen komponent
* ♻️ Refactor SEO
* 🔥 Fjernet ubrukt HEAD i prinsipper
* 🔍 Canonical på god-praksis sider med tema-query
* 🔥 Fjernet console.logs
* 🎨 Forbedtret page-types i nextjs (#2291)
* 🎨 Migrert til portableText
* 🎨 Bruker default portableblock i sanity
* ♻️ Refactor blockcontent
* 🔥 Fjernet all bruk av sanity-icons
* 🎨 Skrever seg bort fra sanity-ui
* 🐛 Fikset feil etter migrering
* 🔥 Fjernet bruk av svgr i next-config
* 🐛 Fikset brukket sitemap-generering
* 💄 Fikset overflow-bug i toc
* 🎨 Flyttet toc-logikk ut i hook
* 🐛 Fikset story-kategori for toc
* :bug; Fikset hidden på toc, lenker på komponentsider
* 🎨 Fikset toc min-bredde, oppdatert sidebar-ikoner
* 🎨 Fikset wrapping av search på ikonside
* 🐛 Fikset import-error
* 🐛 Tester fjerning av console log for playwright test
* ⬆️ yarn synk
* 🐛 Fikset hostname for Aksel.nav.no
* 🐛 Bedre fallback-handling av portabletext
* 🐛 Fikset darkmode-visning av Alert i sanity
* ⬆️ yarn synk
* initial box (heavily inspired by shopify Box)
* 🎨 Theming-demo
* rm printHidden prop
* sr-only: clip is deprecated, adding clip-path
* setting up padding story box primitive
* 95% complete padding example for Box (dynamic css code unfolding with types)
* WIP on padding/margin for box
* working box padding/block/inline/margin?
* remove console.log
* story for Box, copy implementation from padding to apply to margin as well
* remove unwanted props on Box
* refactor semantic-colors.json, use json import for types in Box.tsx
* squashme
* Box: working border & background
* 🔥 remove props on Box we will not implement in v1
* refactoring / less things needed (no margin) and things that are broken show up in stories
* 🐛 fix erroneous padding assignment (a flipped index)
* fully recreated LinkPanel
* box: add all borderRadius props
* box: complete example for chat bubbles
* 📝 refactor box hover props to be an object instead
* checkout main yarn.lock
* yarn changeset
* 📝 add jsdoc for Box
* 📝 add token documentation
* 🚧 Box: add barrel file
* 🔥 remove overriding tokens for Box
* ♻️ refactor the borderRadius API
* 🔥 remove console.logs
* bump ts version (make them all equal)
* fix new type error that surfaced when upgrading TS
* add yarn.lock
* 🚧 testing with older TS version again
* Revert "🚧 testing with older TS version again"
This reverts commit ca09f3c419.
* add minimum permissions check utility (official github action)
* Revert "add minimum permissions check utility (official github action)"
This reverts commit f9dd5ea436.
* test with "read-all|write-all" for a chromatic.yml action
* remove unused comments
* 🚧 try skip a test suite
* Revert "🚧 try skip a test suite"
This reverts commit ccf4711c25.
* 🚧 update all node-version to 19
* 💥 Force-tester GHA
* 💥 bump node-version to 20
* 💥 test with jsonModules again, but this time with node v20
* 🚧 revert type erasure (for tests)
* 🔥 remove hover from Box
* 🚧 test with module identifier import
* 🚧 squashme
* a working token type solution
* 📝 group Primitives in storybook
* no longer assert type, hint instead
* 📝 improve jsdoc for Box
* 📝 improve jsdoc for Box
* 🚧 test relative import for github action
* 🚧 test ordering of yarn builds
* 🚧 test ordering of yarn workspaces
* 🚧 test dependency for yarn workspaces
* 🐛 fix human error in token refactoring
* 📝 reword jsdoc
* ♻️ refactor
* 🚧 test again with module identifier import
* squashme
* 🚧 fully revert to importing .json
* 🚧 remove duplicate types
* 🔥 remove style-dicitonary format (now unused), fix shadow.json refs
* remove devDependency on tokens (for react)
* 📝♻️ update comments & naming
* 🚚 Oppdatert CSS-config etter ny primitives gruppering
* make border-color also control border-style
* add examples for Box to aksel.nav.no
* ⬆️ Yarn sort av dependencies
* 🎨 BorderWidth tokens
* 🎨 Css for borderRadius
* 🎨 Setup responsiveRadius utility
* ♻️ Forenklet borderRadius
* 🎨 refactor padding in box
* 🔥 Fjernet unødvendig kode
* 🎨 Oppdatert token for borderWidth
* 🐛 Default 0px border
* 🏷️ Refactor types
* 🐛 Fikset stories
* ♻️ refactor away one of the getResponsiveProps(), renaming
* ♻️ refactor + add token exceptions
* 🐛 new props based on BoxProps
* 📝 Oppdatert box-eksempler
* 📝 border-eksempler
* 📝 shadow-eksempel
* 📝 header demo
* 🔥 Fjernet theming demo, la til panel-demo
* 🚚 Flyttet show/hide inn i primitives
* 🚚 extract stateful colors to separate files
* 🚚 move shadow stateful tokens as well
* ♻️ rename some Box types
* 🚚 re-add missing token
* 🚚 move types file to utils, (bonus: fix some jsdoc)
* ➕ add @navikt/ds-tokens to react
* Update .changeset/happy-pianos-cheat.md
---------
Co-authored-by: Ken <ken.aleksander@gmail.com>
Co-authored-by: Lars Hansen <lars.eirik.korsgaard.hansen@nav.no>
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
* 🚧 update all node-version to 19
* 💥 bump node-version to 20
* bump ts version (make them all equal)
* fix new type error that surfaced when upgrading TS
* ⬆️ bump ts-node
* 🚧 add ts-jest to aksel-stylelint (just a test)
---------
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
* 🐛 move internal token definition to a larger scope
when the scope only covered the __header, the __item could
not use the same token, and it was undefined. Setting this on
a shared parent (the topmost accordion) fixes this.
* changeset
* Move movements should "take over" from keyboard focus in Combobox dropdown list, and vice versa, acting like a native select.
Fixes#2165
* Add tests for handling mixed keyboard-navigation and mouse movements in Combobox
* Added changeset
---------
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
- Oppdatert Storybook, Sanity
- Fikset validering for InputWithCounter i Sanity
- Fikset Accordion-stories rekkefølge
- La til egne knapper for Desktop/mobil-view for eksempler
- Bruker DS-knapper i kode-eksempler på Aksel
* Fixes bug where it is not possible to close dropdown by pressing escape or clicking outside the combobox after clicking the chips to de-select an option
In short, the focus were lost/reset when the chip disappears, but now is reset to the input instead.
Also fixed issue where clicking the chip while virtual focus is in the dropdown caused a click on both the option and the chip, causing it to be de-selected and instantly re-selected.
* Updated "remove selected"-test to also check that closing the dropdown after clicking a chip is possible.
* Added changeset
* style links with inline
* tweak css spacing for inline links with SVG
* add break-all prop to link
* wrap link in span to allow for spacing
* more obvious spacing example
* remove spacing prop from link
* implement pr review comments
* add random icon visual fuzz testing in stories
* remove console.log
* changeset
* add examples to aksel.nav.no
* 🎨 make inline-flex version opt-in, improve prop naming
* 🐛 Fixed comments
* 🎨 Oppdatert props
* 🎨 refactor links, add examples (remove underline & inline)
* change is no longer major (pr review comment)
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
* cleaner changeset (pr review comment)
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
* norwegian changeset (pr review comment)
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
* update changeset (pr review comment)
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
* use neutral token for neutral link variant
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
* use neutral token for neutral link variant
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
* Update .changeset/proud-tigers-share.md
---------
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
Co-authored-by: Ken <ken.aleksander@gmail.com>
* Clear input field when clicking option in multiselect combobox
Makes the behaviour consistent when clicking with a mouse and when selecting an option with keyboard.
* MultiSelect with "add new" example should actually have the addnewValues prop set...
* Expose through onToggleSelected whether selected values in combobox are added by the user or not.
* Add the additional affordance of bold font-weight for selected options in combobox.
Done to account for screen magnifiers on screens that don't show the background color, where the checkmark is out-of-sight.
* Avoid "jumping" when selecting option in multiselect, stemming from the chips being slightly larger than the padding allowed for (equal to the width of the border)
* Added changeset and updated yarn.lock
* Do not use focus-visible inside fallback for when focus-visible is not supported
* Add fallback focus-styling using JS and a helper class for browsers not supporting :has (Firefox)
* Fix for onBlur in ComboboxWrapper. Without tabindex="-1" event.relatedTarget in onBlur will be null, and we can't check that focus has entirely moved outside the Combobox.
* Removable chips type now defaults to button
* 📝 Changeset
* 📝 Changeset update
* Remove OverridableComponent from Chips.Removable. This component should always be a button, and it is not currently used in any other way.
The reason for making this change now, is that we put type="button" on the Chip.Removable to prevent a submit event when the chip is clicked inside a form.
---------
Co-authored-by: Ken <ken.aleksander@gmail.com>
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com>
Co-authored-by: Vegard Haugstvedt <it.vegard@gmail.com>
Combobox post-release tweaks
* Add dynamic height to examples because of the dropdown
* Examples were not working: remove controlled prop for uncontrolled Comboboxes
* Add an example with controlled Combobox
✨Ny komponent: Combobox 🎉
Combobox er en ny komponent som kombinerer tekstfelt og nedtrekksliste.
- Velg mellom predefinerte alternativer i nedtrekkslisten
- Bruk input-feltet som filter for alternativene i nedtrekkslisten.
- Legg inn nye svar, hvis svaret du ikke finnes i listen
- Velg mellom SingleSelect eller MultiSelect-versjon for henholdsvis ett og flere valg.
- Autocomplete svar i inputfeltet når man velger SingleSelect
Dokumentasjonen finner du på https://aksel.nav.no/komponenter/core/combobox
* Add onclick prop to CopyToClipboard component, so it is possible to add external callbacks on clicks.
Requested to enable Amplitude-logging on clicks
* 🐛 Fixed TS conflicts and added onClick callback to CopyToClipboard
📝 Token for Toggle-chips text
🎨 Alert bruker nye ikoner, token for ikonfarger
🎨 Alert bruker gamle ikoner, men nå med tokens
🎨 Error-summary bruker nå riktig token for listemarkering
💄 Mer spacing-bottom for content i small expansioncard
🔥 Fjernet clickarea-prop
🔥 Fjernet avatar-prop
💄 Header-title margin
💄 Chevron-alignment til toppen
📝 Fikset nextjs demoer
* Add focus-visible for tabpanel
* Set focus-indicator width to 2px instead of 3px. This is a change that will probably be applied throughout the design system in time.
* New version for DS-CSS adding focus indicator to tabpanels
add links to project-tasks, slack discussions etc here
-->
### Change summary
<!-- Short summary of changes in PR
- added variant x
- fixed bug in y
-->
### PR Checklist 📝 (Remove fields after check!)
#### New component? ✨
- Check that component-styling is correctly configured in `@navikt/core/css/config/_mappings.js`. This is needed for correct build and CDN upload.
- Check that styling is correctly exported from `@navikt/core/css/index.css`
- Check that correct tokens for component is documented in `@navikt/core/css/tokens.json`
- Check that only needed components and types are exported from `@navikt/core/react/src/index.ts`
- Add JSDoc to component (see other components for reference)
- Create storybook-stories for relevant component variations and compositions. Stories are used for [visual regression testing](https://www.chromatic.com/docs/), so make sure they are complete.
- Is the component sufficiently complex to warrant tests? Add some unit-tests for jest.
#### Component-updates 🎉
- Revalidate if everything under `New component` is still accounted for
- Deprecating/removing a CSS class? Add it to `@navikt/aksel-stylelint/src/deprecations.ts` with a suitable description. This helps stylelint-users keep their code clean and bug-free.
#### Documentation 📝
- Add/update component-demos for component `aksel.nav.no/website/pages/eksempler`
- Create/Update documentation in sanity if needed
Note: Props, tokens and examples only updates to sanity on merge to main
#### Versioning 🏷️
- Run `yarn changeset` to generate a version-entry for change.
- - Bug/hotfix: Patch
- - New feature: Minor
- - Breaking change: Major
- Adding breaking changes? Consider adding a codemod for easier migration.
- Breaking changes also needs documentation under "Migration"-page on website
import AkselThumbnail from "./assets/aksel-thumbnail.png";
import Setup from "./assets/setup.png";
import Components from "./assets/components.png";
<Meta title="Getting started" />
<div className="sb-container">
<div className='sb-section-title'>
# Getting started
Aksel is the toolbox for product development <a href="https://aksel.nav.no"target="_blank">@NAV</a> (Norwegian Labour and Welfare Administration)
This includes a designsystem, best practices for product-development, principles for user-experience and a blog. <a href="https://aksel.nav.no/god-praksis/artikler/om-aksel" target="_blank">
Read more about Aksel.</a>
</div>
<div className="sb-section">
<div className="sb-section-item">
<img
src={AkselThumbnail}
alt="Aksel-thumbnail"
aria-hidden
/>
<h3 className="sb-section-item-heading"><a
href="https://aksel.nav.no"
target="_blank"
className="sb-link"
>Website</a></h3>
<p className="sb-section-item-paragraph">Includes everything you need to get started building and developing digital products for NAV today.</p>
-[#1852](https://github.com/navikt/aksel/pull/1852) [`a4fd1dd22`](https://github.com/navikt/aksel/commit/a4fd1dd227b9b56b747f962aa0c2b2dc9b4e30a4) Thanks [@KenAJoh](https://github.com/KenAJoh)! - Oppdatert ikonpakke med nye ikoner :rocket:
- :tada: CaretDownFill
- :tada: CaretLeft
- :tada: CaretLeftFill
- :tada: CaretLeftRight
- :tada: CaretLeftRightFill
- :tada: CaretRight
- :tada: CaretRightFill
- :tada: CaretUpDownFill
- :tada: CaretUpFill
- :tada: Escalator
- :tada: Moon
- :tada: MoonFill
- :fire: EscalatorStroke
## 2.7.3
## 2.7.2
## 2.7.1
### Patch Changes
- [`7d9517cf9`](https://github.com/navikt/aksel/commit/7d9517cf90331b57441a0787a04eef66efd1b9b0) Thanks [@KenAJoh](https://github.com/KenAJoh)! - Public-access for ny ikonpakke i GPR
- [#1847](https://github.com/navikt/aksel/pull/1847) [`de291a972`](https://github.com/navikt/aksel/commit/de291a9722c262d40fecaec7be55b71f86e60160) Thanks [@KenAJoh](https://github.com/KenAJoh)! - Ny ikonpakke med for core icons 3! `@navikt/aksel-icons`
- Ny ikonpakke med for core icons 3! `@navikt/aksel-icons` ([PR](https://github.com/navikt/aksel/pull/1847))
Pluginen gir deg mulighet til å se gjennom og hente ut alle ikonene i fra ikonpakken `@navikt/aksel-icons`. Du slipper da å hente nye oppdateringer fra Figma Community.
Referer til [ikon-dokumentasjonen](https://aksel.nav.no/ikoner) for å se alle ikonene.
Har du ønsker om nye ikoner, eller ønsker å bidra med å lage nye, lag et issue på [GitHub-repoet for designsystemet](https://github.com/navikt/aksel).
## Quickstart
-`yarn dev` for development
-`yarn build` for production-build
### Test with Figma
- Open `Figma` -> `Plugins` -> `Development` -> `Import plugin from manifest...` and choose `manifest.json` file from this repo.
### Publish to Figma
- Open `Figma` -> `Plugins` -> `Find more plugins` -> `Publish new versions`
Loaded 100 of 3754 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.