github-actions[bot] and github-actions[bot]
bc8761295b
Version Packages ( #3314 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-04 10:22:20 +01:00
Halvor Haugan
6d9f9001fe
Table.ColumnHeader: Inherit text alignment in button ( #3319 )
2024-11-01 16:07:39 +01:00
Ken and Julian Nymark
039332b4f8
[Darkside] Updated Alert CSS ( #3301 )
...
* change: Alert variants
* feat: Updated alert css
* change: use correct spacing
* Update @navikt/core/css/darkside/alert.darkside.css
Co-authored-by: Julian Nymark <julian.nymark@nav.no >
---------
Co-authored-by: Julian Nymark <julian.nymark@nav.no >
2024-11-01 16:05:32 +01:00
Halvor Haugan
8cadfd0979
Pagination: More precise type for renderItem ( #3275 )
2024-11-01 08:49:08 +01:00
Halvor Haugan
c200f580c1
Translations for ReadOnlyIcon ( #3311 )
2024-10-31 16:28:48 +01:00
Halvor Haugan
5ce8ec620c
Include number of failed stories in Chromatic comment ( #3308 )
2024-10-31 15:21:23 +01:00
github-actions[bot] and github-actions[bot]
f7789522c6
Version Packages ( #3307 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-31 12:27:02 +01:00
Julian Nymark
a9a1182eff
Website: 🐛 code example chip to same on first page ( #3310 )
...
* 🐛 fix bug still appearing on first page load
* Website: ♻️
2024-10-31 11:50:32 +01:00
Ken
35f7355233
bug: Checks if autocomplete should actually be used when pressing enter ( #3306 )
2024-10-31 09:56:16 +01:00
Julian Nymark and Halvor Haugan
bbc06a3eab
ErrorSummary: add translation support ( #3245 )
...
* ErrorSummary: add translation support
* Update @navikt/core/react/src/form/error-summary/ErrorSummary.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update @navikt/core/react/src/util/i18n/locales/nn.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* ErrorSummary: fix broken object notation (thanks github conflict webGUI! 😂 )
* ErrorSummary: use proper casing for translations object
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-10-30 16:07:47 +01:00
Halvor Haugan
6e49de805f
Textarea: translations ( #3302 )
2024-10-30 15:31:37 +01:00
github-actions[bot] and github-actions[bot]
9757d7d829
Version Packages ( #3283 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-30 15:28:46 +01:00
Halvor Haugan
d7fb6b5718
[aksel.nav.no] Fix bug when clicking on active code example chip ( #3303 )
2024-10-30 15:26:28 +01:00
Ken
3c53127e5e
bug: Combobox now handles autocomplete correctly with new values ( #3287 )
2024-10-30 14:50:58 +01:00
Julian Nymark
561dd2e3c0
Introside: 📝 update confirmation text ( #3300 )
...
* Introside: 📝 update confirmation text
* Introside: 📝 update confirmation text (+ meta.json)
2024-10-30 13:47:41 +01:00
Julian Nymark
1e9983c65b
Button: ✨ new tokens (darkside.css) ( #3237 )
...
* Button: ✨ new tokens (darkside.css)
* Button: 🚚 copy over the primitives CSS
* Button: temporary missing placeholder tokens (shadow)
* Button: use new tokens
* Button: remove temporary duplicate code, remove box-shadow focus
* Button: 🎨 use new token prefix
* Button: 🐛 erroneous token conversion from old
* Button: 🐛 erroneous precedence of some CSS rules
* Button: 🎨 do not use CSS nesting (...yet!)
* Button: 🎨 use alpha tokens for hover on secondary and tertiary
* Button: 🎨
* Button: 🚨 ignore outdated stylelint rule
* Button: 🎨 use bg token for storybook preview darkmode
* Button: 🔥 🎨 remove unused CSS, better scope for var def
* Button: 💄 use correct tokens, prettier css rules
* Button: 💄 remove unused CSS
2024-10-30 12:56:04 +01:00
Halvor Haugan
76937a0a2b
Combobox: 🐛 Fix scroll issue when using arrow keys in list ( #3299 )
2024-10-30 12:20:56 +01:00
Halvor Haugan
1ac9ec2f56
Remove some excludes in axe.e2e.ts ( #3291 )
2024-10-30 10:06:31 +01:00
Halvor Haugan
e88d328e8b
Add darkside tokens to stylelint rule value-no-unknown-custom-properties ( #3297 )
2024-10-30 10:05:16 +01:00
Ken
1e2b1d885f
[Darkside] Updated Typo CSS ( #3295 )
...
* [Darkside] Migrated typo to new CSS
* memo: Added comments
2024-10-30 10:03:09 +01:00
Halvor Haugan
4cdeeacaef
Add "Decision Records" to PR template ( #3289 )
2024-10-29 15:39:07 +01:00
Halvor Haugan
c2365712ca
[Translations] Table: i18n support ( #3281 )
2024-10-29 13:28:36 +01:00
Ken
0afbef50a9
[Darkside] Allow old spacing tokens in darkside to avoid editing react-code in production
2024-10-29 13:17:39 +01:00
Halvor Haugan
7799416096
Search: i18n + remove role ( #3280 )
2024-10-29 12:48:28 +01:00
Halvor Haugan and Ken
92b39de213
[Translations] ProgressBar: i18n support ( #3277 )
...
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
2024-10-29 12:35:10 +01:00
Halvor Haugan
9dade96849
[Translations] Modal: i18n support ( #3273 )
2024-10-29 12:25:08 +01:00
Halvor Haugan
5c23ca62b6
[Translations] Pagination: i18n support ( #3276 )
2024-10-29 12:16:53 +01:00
Halvor Haugan
d562ef0d87
[aksel.nav.no] Adjust examples of HGrid, Show and Hide ( #3288 )
2024-10-29 12:06:56 +01:00
Ken
13c9fef93a
[Darkside] Moved old CSS over to new Darkside dir ( #3284 )
...
* change: Copy over old CSS into darkside dir
* change: Update imports for darkside css
* bug: Updated togglegroup css naming
2024-10-29 11:36:14 +01:00
Magnus Tønnessen and Ken
b5c7defffb
Add month input format MMyyyy ( #3285 )
...
* change: Add allowed month input format MMyyyy
* Update .changeset/strong-apes-hope.md
---------
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
2024-10-29 10:33:59 +01:00
Halvor Haugan
e4eccd7616
[aksel.nav.no] Add language block ( #3267 )
2024-10-28 19:34:48 +01:00
Halvor Haugan
5295abb1bf
[Translations] Loader: i18n support ( #3272 )
2024-10-28 11:42:13 +01:00
Halvor Haugan
3bfd5d2299
Tabs.List: Remove redundant icon titles ( #3282 )
2024-10-28 10:24:58 +01:00
Halvor Haugan
a63ba59636
[Translations] ExpansionCard: i18n support ( #3271 )
2024-10-25 15:18:47 +02:00
Julian Nymark
81c79d8355
Combo filteredoptions offset fix ( #3269 )
...
* Combobox: 🐛 only apply the offset when it's needed
* Combobox: changeset
2024-10-25 14:52:16 +02:00
github-actions[bot] and github-actions[bot]
f27698a2bf
Version Packages ( #3270 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-24 09:15:01 +02:00
Halvor Haugan
fdc3244cde
Better support for React 19 ( #3268 )
...
* Date/MonthPicker: Upgrade react-day-picker to fix issue with Nextjs 15
* Slot: Use ref from props to avoid warning in React 19
2024-10-24 09:07:26 +02:00
Vegard Haugstvedt
59dc3e999b
Feature/combobox show add new value while autocompleting ( #3225 )
...
* Show AddNewValue button in Combobox based on searchTerm instead of value, so it is displayed when autocompleting words
* Highlight matching text in FilteredOptions
* Add changeset
* Move styling to combobox.css instead of inline JS
* Ensure label options are read as one text, even when highlighting search matches.
This only seemed to be a problem in testing library, so we should be able to remove this if they fix this in their calculation of accessible name.
* Update changeset to a minor version
* Re-introduce controlled value in storybook examples to not change Chromatic snapshots
2024-10-23 15:42:26 +02:00
Halvor Haugan
9711de90da
Checkbox: Remove redundant attribute aria-checked ( #3274 )
2024-10-23 13:48:46 +02:00
Halvor Haugan
ddf9f9bc5a
Combobox: Don't scroll when moving virtual focus with mouse ( #3265 )
2024-10-23 09:44:11 +02:00
Ken
d83a6feb36
[Darkside] Tailwind CSS config for new tokens ( #3251 )
...
* change: Updated actionmenu examples
* change: Removed flipAlignment prop for better alignment
* change: Removed defaultOpen-prop from ActionMenu
* change: Moved rootElement prop to component root
* change: Added support for use inside Modal
* change: Use MenuPortalProps instead of Pick
* feat: Added build for darkside
* feat: Implemented darkside-tokens in tailwind-build
* change: Code cleanup and syntax simplification
* change: Moved color-token extraction to start of file
* memo: Moved comment
2024-10-21 17:04:06 +02:00
Ken
f505386104
[Aksel.nav.no] Add support for markdown-links in intro-texts ( #3262 )
...
* change: added markdown-support for intro-texts
* change: Added description for sanity-fields
2024-10-21 16:56:03 +02:00
github-actions[bot] and github-actions[bot]
9f56b84a96
Version Packages ( #3259 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-21 15:28:43 +02:00
Halvor Haugan
b91ce5794d
Combobox: 🐛 Remove virtual focus on input blur instead of moving it ( #3261 )
2024-10-21 15:10:31 +02:00
Ken
99eaf41e47
change: Hide private props better ( #3260 )
2024-10-21 14:37:55 +02:00
Halvor Haugan and Ken
536b0fcc5e
Combobox: Clearify in JSDoc what clearButton does ( #3258 )
...
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
2024-10-21 09:58:10 +02:00
Ken and Halvor Haugan
64aab7361a
Stylelint v16 update ( #3250 )
...
* update: Stylelint v15
* update: Stylelint v16
* updated: Use complex list syntax for not-selector
* lint updates
* More lint fixes
* memo: Changeset
* bug: Missing shorthand for spacer
* Update .changeset/slimy-yaks-smash.md
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* change: re-added directional placement for modal polyfill
* change: Inset -> direction
* update: lock sync
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-10-21 09:54:09 +02:00
Ken
8c15433b95
change: Update token-prefix to 'ax' ( #3257 )
2024-10-21 09:53:49 +02:00
Halvor Haugan
8137a1e500
Fix useState in Storybook ( #3256 )
2024-10-21 09:06:29 +02:00
Ken
7138b52c2d
[Linting] Eslint v9 dependency upgrades ( #3248 )
...
* update: eslint-plugin-react-hooks v5 update
* update: Valid React-component names used for useDescendants
* update: Bumped eslint packages to support v9
* change: Rename hooknames
* update: lock sync
2024-10-18 15:54:12 +02:00
Ken
1730b2ebc1
[Scripts] Updated clean-script ( #3249 )
...
* change: Updated clean-script
* change: Removed logging and extra filtration
2024-10-18 15:53:01 +02:00
github-actions[bot] and github-actions[bot]
6324d63745
Version Packages ( #3226 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-18 14:20:08 +02:00
Halvor Haugan
debfb3fd15
[Translations] Chips.Removable: Remove translations-prop (partly reverts #3232 ) ( #3255 )
2024-10-18 14:15:23 +02:00
Ken
a3e8457baf
change: Reduced height for actionemu examples ( #3246 )
2024-10-18 12:45:36 +02:00
Halvor Haugan
0560f84acd
➖ Remove faker ( #3254 )
2024-10-18 12:20:35 +02:00
Halvor Haugan
663dfbe8a4
🆙 Upgrade some dependencies ( #3247 )
2024-10-18 12:02:05 +02:00
Halvor Haugan
536f088b97
List.Item: Center icon horizontally inside it's container ( #3253 )
2024-10-18 11:55:46 +02:00
Ken
f659599787
[ActionMenu] Removed defaultOpen-prop, moved rootElement, added Modal-support ( #3240 )
...
* change: Updated actionmenu examples
* change: Removed flipAlignment prop for better alignment
* change: Removed defaultOpen-prop from ActionMenu
* change: Moved rootElement prop to component root
* change: Added support for use inside Modal
* change: Use MenuPortalProps instead of Pick
* change: Revert to using Pick for prop inheritance
* change: Menucontext uses required definition of rootElement
2024-10-17 16:19:27 +02:00
Ken
ed34bc034a
[Darkside]: Move text-contrast tokens into semantic groups
2024-10-17 14:26:20 +02:00
Ken
2a2028fd95
[BasePrimitive] Hide className from basePrimitive type ( #3241 )
...
* change: Hide className from basePrimitive type
* change: Re-order baseprimitive types (#3242 )
2024-10-17 13:04:50 +02:00
Ken
386145d63a
[Darkside] Made breakpoints and font-tokens avaliable in css output
...
[Darkside] Added breakpoints to token-config
[Darkside] Added font to token-config
2024-10-17 11:51:54 +02:00
Ken
1ed809c872
[Actionmenu] Updated examples for docs, removed flipAlignment-prop ( #3236 )
...
* change: Updated actionmenu examples
* change: Removed flipAlignment prop for better alignment
2024-10-17 09:49:56 +02:00
Ken
e2359ddf33
[Darkside] Bumped role-raised tokens on darkmode one tick on the scale, updated darkmode input token
2024-10-16 19:45:15 +02:00
Ken
069e3346ec
[darkside] Added spacing and border-radius token support for JS/TS file-format
2024-10-16 14:34:06 +02:00
Halvor Haugan
c941af9de5
Refactor examples of Vstack and HStack ( #3244 )
2024-10-16 14:15:08 +02:00
Halvor Haugan
a273a22172
Adjust examples of VStack and HStack ( #3243 )
2024-10-16 13:31:09 +02:00
Ken
0e94031f1e
[Darkside] Added alpha-variant to border-subtle
2024-10-16 13:01:10 +02:00
Ken
64a9762286
change: Updated exports to make docgen work ( #3235 )
2024-10-16 09:29:39 +02:00
Ken
a05dbadfa4
[darkside]: Added support for darkside views in chromatic ( #3239 )
2024-10-15 16:55:05 +02:00
Halvor Haugan
7c468b18d1
Adjust dates in Date/MonthPicker examples ( #3238 )
2024-10-15 16:35:45 +02:00
Ken
cfcd78a450
[sanity] Grunnleggende now has access to props block
2024-10-15 15:40:45 +02:00
Halvor Haugan
9e677697a7
[aksel.nav.no] Fix copy-pasting snippets in Firefox
2024-10-15 12:15:24 +02:00
Halvor Haugan
8a8bf0a274
[aksel.nav.no] Adjust list of outdated articles ( #3234 )
2024-10-15 10:28:03 +02:00
Halvor Haugan
1e40d96510
Chips.Removable: Added new i18n API ( #3232 )
2024-10-15 09:55:30 +02:00
Ken
db56141b2e
[Darkside] Updated CSS-readme with syntax hints
2024-10-15 09:43:14 +02:00
Ken
ec351ba27f
[Darkside] Added CSS-resets, utilities, fonts ++ to darkside css
...
[Darkside] Removed unused 'baseline' css
[Referansesider] Updated css-import to layer 'framework'
2024-10-14 22:32:39 +02:00
Ken
2e98a09540
[Linting] Update @typescript-eslint/eslint-plugin to v8 ( #3222 )
...
* linting: update ts eslint package to v8
* linting: Update ts eslint package to v8
* change: removed redundant off-toggle of native eslint rules
* change: update interface declaration
2024-10-14 16:43:46 +02:00
Halvor Haugan
2d438e1d37
[Translations] Alert: i18n support ( #3231 )
2024-10-14 16:42:41 +02:00
Ken
8b373e8b80
bug: Use relative units instead of tokens for storybook markdown
2024-10-14 16:21:32 +02:00
Ken and Halvor Haugan
179eb51221
[Darkside] Added development environment for new CSS ( #3233 )
...
* change: Added stoybook decorators for darkside toggle
* feat: Added dynamic CSS-loading based on mode
* memo: Added readme for new CSS
* change: Added basic body styles for darkside, including fonts
* change: Added loading of new CSS to referansesider
* bug: Removed old preview file in storybook
* change: Added utf-8 to darkside css
* change: Updated darkside css readme with new instructions
* change: Removed old bg style on wrapper
* Update .storybook/preview.jsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* change: Refactored theme decorator
* Update .storybook/preview.jsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* bug: Re-added return
* change: themedecorator -> modedecorator
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-10-14 16:12:03 +02:00
Halvor Haugan
d98624618c
[Translations] Accordion: Remove redundant icon title ( #3230 )
2024-10-14 15:36:20 +02:00
Julian Nymark
ecc501a0a8
Referansesider: dagoversikten tweaks to table, remove Timeline
2024-10-14 11:49:51 +02:00
Ken
fec3b12d5f
[Darkside] Added alpha-scale for global and moderate
...
[darkside] Updated naming transform to support alpha-tokens
[darkside] Updated input-token to use opacity
[darkside] Added alpha-tokens to global config
[darkside] Now auto-generates the alpha-values
[darkside] Added semantic role tokens using alpha-values
bug: removed tempfile added by vitest
2024-10-14 11:36:23 +02:00
Ken and Halvor Haugan
8f99d3a102
[Icons] Some icons that should be ignored were fetched and caused exceptions ( #3228 )
...
* bug: Some icons that should be ignored were fetched and caused exceptions
* change: Added some comments
* change: Better math for icon-check
* change: Better messaging
* Update @navikt/aksel-icons/config/figma/index.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-10-14 10:19:21 +02:00
Julian Nymark
7fa7719c24
Referansesider: dagoversikten tweaks to MiniTag
2024-10-11 16:41:22 +02:00
Julian Nymark
bc1b9fdad9
Referansesider: dagoversikten table placeholder
2024-10-11 16:34:15 +02:00
Julian Nymark
755d75903a
Referansesider: dagoversikten correct tokens for borders
2024-10-11 16:13:57 +02:00
Julian Nymark
5ebc71470a
Referansesider: dagoversikten completed rightside
2024-10-11 16:03:17 +02:00
Halvor Haugan
17daddab86
Add description to GuidePanel examples ( #3224 )
2024-10-11 14:14:34 +02:00
20ced9b084
ActionMenu component ( #3081 )
...
* 🎨 Setup content
* 🎨 Fungerende popover med story
* 🎨 useDescendant-API kan bruke uten context-error på nesting
* 🐛 Fikset tilfeller der oppdatering av descendant-options ikke ble reflektert i descendants-map
* 🐛 Satte enabled til optional
* bug: import av Portal brakk stories for Popover og Floating
* bug: DescenadantContext er nå riktig typet som undefined
* label: scopet navn for bruk av descendant-provider i dismissablelayer
* memo: Bedre kommentarer
* feat: Sender ikke callbacks hvis layer er disabled
* memo: Formatering og kommentarer
* memo: Kommentarer
* copy: Kopiert over basekomponent
* refactor: Oppdatert imports
* refactor: Oppdatert Primitive bruk
* feat: Støtter forwardRef
* fire: Fjernet Radix import
* feat: Bruker Floating og ikke PopperPrimitive
* type: Bedre typet composeEventHandler
* refactor: Fjernet scopedProps
* feat: Custom RowingFocus
* wip feat: Replaced rowingfocus
* wip feat: Implemented initial focus for rowingfocus
* wip feat: Removed old collection api
* refactor: Use internal Slot component
* refactor: Fixed all scoped context-use
* feat: Fullført migrering til internt API
* test: Setup stories
* bug: Content is added to descendants
* bug: Found issue for nesten descendants
* copy: Kopiert over refactor for useDescendant
* bug: Fikset descendants nesting
* feat: Fikset keyboard nav med nested descendants
* bug: Removed early return
* memo: Kommentarer
* label: Typer
* refactor: Fjernet Root export
* refactor: Fjernet typeahead
* test: Setup story for entryfocus
* refactor: Forenklet FocusScope
* refactor: bedre dokumentert utils
* refactor: Moved utils to separate file
* refactor: Moved slotted-div to separate file
* refactor: Moved MenuContext out to context-file
* 🚚 Moved focus-files
* refactor: Update syntax
* refactor: Moved MenuAnchor to file
* refactor: Moved MenuGroup to file
* refactor: Moved Separator to file
* refactor: Moved Label to file
* refactor: Moved utility-components
* refactor: Flyttet item til mappe
* refactor: Flyttet checkbox
* refactor: Content in separate file
* refactor: Radio i separate filer
* refactor: SubComponents in files
* refactor: Bedre typer
* refactor: Re-written back to single file
* refactor: Fjernet gamle commits
* bug: Fikset import feil og feil extension av type
* refactor: data-attrb fra radix -> aksel
* refactor: Fjernet console.logs
* bug: Fixed import and test-type error
* refactor: Remove unwanted exports
* feat: Re-added ItemIndicator wrapper
* refactor: Updated exports
* refactor: removed focusguards
* refactor: FocusScope now assumes Slot
* refactor: Removed extra tabIndex
* feat: Implemented ItemIndicator and styling for testing
* refactor: Rowing -> Roving
* refactor: Moved Menu-component into overlays-dir
* bug: Fixed import of Slot
* bug: Re-add tabIndex to MenuItem for correct focus-handling
* memo: Rename Tab -> menu
* refactor: removed unwanted exports in story
* Update @navikt/core/react/src/overlays/floating-menu/Menu.stories.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* bug: Added missing meta import
* bug: Aligned dash with checkmark
* bug: Circle icon now shows for radio-demo
* bug: keyframes has extra ':', breaking animations
* bug: Re-added ItemIndicator for all TickIcon
* bug: WithLabel story now shows complete dropdown
* feat: Added disabled-styling to submenu
* refactor: Now uses ownerdocument where needed instead of document
* adjustments after review 1
* adjustments after review 2
* refactor: Updated to correct function type syntax
* refactor: renamed floating content propname
* refactor: Consistent destructuring of props
* refactor: rename FocusScope props
* memo: Added explanation for why we use flushEvent
* refactor: added consistent use of composeEventHandlers
* refactor: Force userSelect none style
* demo: Allow canceling opening if pointerdown is released outside of menu
* memo: Better line-dividers
* refactor: removed data-highlighted logic
* Update @navikt/core/react/src/overlays/floating-menu/Menu.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update @navikt/core/react/src/overlays/floating-menu/Menu.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* feat: DropdowmMenu boilerplate
* feat: MenuTrigger & MenuPortal
* feat: MenuContent
* feat: MenuGroup
* feat: lvl-1 components added
* feat: Implement each component
* feat: Implement export
* refactor: Fixeed proptypes for sub
* feat: Implemented trigger
* testing: Updated stories
* feat: Added experimental API 'requireReactelement'
* feat: Implemented content
* feat: Implemented label
* feat: Implemented Item
* feat: Implemented Item
* feat: Implemented group
* feat: Implemented radoigroup
* feat: Implemented radio
* feat: Implemented checkbox
* feat: Implemented sub-trigger
* feat: Implemented sub-content
* feat: Implemented separator classname
* feat: Added cancelable event for pointerdown
* feat: Added dropdown-menu css
* WIP: CSS
* WIP: Added label styling
* feat: Remove checkmarks whe unchecked
* feat: Allow use of 'il' in floating-element
* feat: Implemented semantic tags for items and content
* feat: Added test-markup
* Revert "feat: Implemented semantic tags for items and content"
This reverts commit 6bf473328d .
* Revert "feat: Allow use of 'il' in floating-element"
This reverts commit 5307facbca .
* css: Item active styling
* testing: Setup storybook test framework
* testing: setup basic feature stories
* testing: Un-nested variants
* testing: advanced demos
* feat: Disabled and submenu css
* feat: Added bg on open submenu-trigger
* feat: Added destructive item
* feat: Stop selecting checkbox from closing dropdown
* feat: Use actual radio and checkbox svg for components
* feat: Animate checkbox/radio checked
* feat: Added indeterminate checkbox
* feat: Added indeterminate demo
* feat: added story for shortcuts
* TODOS
* feat: added possibility to close submenus with arrowright when opened to the left of content
* refactor: Better implementation of Shortcuts and aria-keyboardshortcut
* feat: added thin scrollbar
* feat: Added animationsupport for all directions when opening dropdown
* refactor: Cleaned up CSS
* testing: Added chromatic stories for dropdown
* refactor: Dropdowm CSS -> Actionmenu CSS
* refactor: Rename files
* refactor: Move file to utils
* refactor: Inline Slot button
* refactor: rename react dropdown -> action
* refactor: Solved alignment issue with checkbox/radio and text
* feat: use div instead of removed Menu.Label
* refactor: Better useRef reference
* memo: Updated comments
* memo: removed old comments
* memo: Prop-comments
* memo: JSDOC
* bug: remove shortcut from exports
* refactor: Avoid exposing extra props for content
* refactor: Avoid exposing extra props for subcontent
* refactor: Updated CSS animation name
* feat: Updated exports making ActionMenu avaliable from the library
* memo: Added actionmenu to CSS-mappings
* feat: Added option to use links in actionmenu
* feat: Icon-prop for Item and Subtrigger
* refactor: Separator -> Divider
* feat: Updated danger variant item text color
* feat: Stronger label typings for group
* bug: Fixed edgecase where focus on trigger would close menu
* bug: removed storybook addon omit
* refactor: Used relative units and tokens for spacing/width
* feat: Added max-width, removed nowrap
* bug: removed demo story
* refactor: Removed old scale(1) property from animation
* Update @navikt/core/css/action-menu.css
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* feat: Added direct import of actionmenu
* Update @navikt/core/react/src/overlays/action-menu/ActionMenu.stories.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update @navikt/core/react/src/overlays/action-menu/ActionMenu.stories.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Minor adjustments
* Remove unused CSS
* feat: De-select all checkboxes when every box is allready checked in indeterminate
* memo: Removed extra stories
* memo: Removed demo used for testing
* feat: More dynamic max-width with 'min'
* memo: Removed cryptic comments
* feat: Avoid spread in reduce
* refactor: Removed middle-step function to handle radio state update
* refactor: Better css-naming for marker css
* refactor: removed extra unused variables, added double underscore prefix
* refactor: Removed extra onSelect on disabled story
* feat: Actionmenu now proplery handles overflow
* feat: Avoid auto-closing modal
* feat: Menu is now Modal
* feat: Now always focuses trigger when closed
* Update @navikt/core/css/action-menu.css
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* feat: Fix space auto closing modal
* feat: Fallback to bottom of anchor when no avaliable space
* memo: Added todo
* ,memo: added todos
* memo: changeset
* refactor: Simplified SVG with groups
* [ActionMenu] Remove extra CSS-classes, fixed centering bug in safari (#3194 )
* refactor: Remove extra CSS-classes, fixed center bug in safari
* refactor: Removed unused CSS
* [ActionMenu] Sub-menu now uses onClick for opening and closing instead of pointermove (#3193 )
* feat: ActionMenu now only opens submeny onClick
* memo: removed TODO
* feat: Closes all adjacent submenues when opening a new one
* refactor: Undo unwrapping of onDismiss
* refactor: Remove unused code in Menu.tsx
* feat: Handle submenu keys correctly
* feat: use native onClick for Trigger
* refactor: Remove un-needed disabled check on trigger
* bug: Reuse already used context
* Update @navikt/core/react/src/overlays/floating-menu/Menu.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* bug: Rename open prop
* Memo: update comment
* feat: Use looser types for RovingFocus
* bug: Aboid auto-closing menu when opening with pointer
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update @navikt/core/react/src/modal/ModalHeader.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update @navikt/core/css/action-menu.css
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update .changeset/dry-flowers-dance.md
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* 💄 Manually set zIndex value
* ActionMenu documentation (#3085 )
* memo: ActionMenu documentation
* refactor: Update to use Icons
* bug: Fixed use of Item with nextjs link-component
* memo: Updated examples
* memo: Updated examples, removed div-wrapper
* TODOS
* memo: Oppdatert submenu med table-vising
* feat: Oppdatert eksempler
* memo: Default open first submenu in demo
* memo: Use norwegian in link docs
* Update aksel.nav.no/website/pages/eksempler/actionmenu/shortcuts.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* memo: Shortcut easter egg
* ⚡ Simplify indeterminate toggle for actionmenu
* refactor: remove redundant aria-label
* Update aksel.nav.no/website/pages/eksempler/actionmenu/sub-menu.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update aksel.nav.no/website/pages/eksempler/actionmenu/links.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* memo: removed reference to nextjs app-router
* bug: Removed empty aria-label
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* [ActionMenu] Fixes overlapping elements for SubMenus (#3212 )
* bug: Fixed scroll + wrapping issue
* bug: undo scrollbar gutter change
* change: Updated chromatic to not overlap
* change: Updated yarn.lock
* change: submenu changes floating position more flexibly than main content now
* change: Chromatic clips unused margins, so moved submenu higher in view
* change: Updated chromatic-story to better show submenu
* memo: changeset for modal head update
* Update .changeset/proud-rings-float.md
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
Co-authored-by: Halvor Haugan <halvor.haugan@nav.no >
2024-10-11 14:13:55 +02:00
Julian Nymark
6d2115cdc9
Referansesider: dagoversikten structure + completed leftside
2024-10-11 13:57:20 +02:00
Halvor Haugan
17ae19c5fe
Add translations for NN and EN ( #3209 )
2024-10-11 12:01:11 +02:00
Ken and Halvor Haugan
a60298f232
[Icons] Refactored Figma fetch to TS ( #3218 )
...
* ♻️ Refactored Icon fetching from figma
* bug: Fixed types for YML-handling
* update: Lock update
* Update @navikt/aksel-icons/config/figma/index.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update @navikt/aksel-icons/config/figma/index.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update @navikt/aksel-icons/config/figma/make-configs.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* refactor: pages -> parts
* refactor: Better naming
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-10-11 09:10:31 +02:00
github-actions[bot] and github-actions[bot]
5866992e7d
Version Packages ( #3208 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-10 15:56:34 +02:00
Ken and Halvor Haugan
8ab241a980
[Linting] Comment-cleanup in eslint ( #3220 )
...
* memo: Cleanup comments
* memo: Updated eslintRc
* bug: Removed ts from global eslint
* Update .eslintrc.js
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* memo: Updated temp comment
* Update .eslintrc.js
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-10-10 15:48:47 +02:00
Ken and Halvor Haugan
363d76b9b2
[Linting] Fixed noUselessTernary and useOptionalChain-rules ( #3215 )
...
* memo: Added figma-plugin as ignore
* memo: Removed unused noSelfAssigned
* refactor: Fixed useJsxKeyInIterable
* memo: Removed unused noInnerDeclarations
* memo: Removed unused noUselessTernary
* refactor: Fixed useOptionalChan rule biome
* Update @navikt/aksel-icons/__tests__/validate-svg.test.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* feat: Better null-check
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-10-10 15:06:49 +02:00
Ken
5da970fd62
[Linting] Fixed useLiteralKeys rule from biome ( #3219 )
...
* memo: Added figma-plugin as ignore
* memo: Removed unused noSelfAssigned
* refactor: Fixed useJsxKeyInIterable
* memo: Removed unused noInnerDeclarations
* refactor: Fixed useLiteralKeys rule
* bug: Fixed typings for sanity publication action
* bug: Fixed typings for sanity publication action
* bug: Fixed typings for sanity publication action
* bug: added null-check
2024-10-10 14:47:11 +02:00
Ken
296e43cab2
[Linting] Fixed useJsxKeyInIterable ,noSelfAssign and noInnerDeclarations rules from biome ( #3214 )
...
* memo: Added figma-plugin as ignore
* memo: Removed unused noSelfAssigned
* refactor: Fixed useJsxKeyInIterable
* memo: Removed unused noInnerDeclarations
2024-10-10 14:33:26 +02:00
Ken
85fec974dc
Added autoprefixer to @navikt/ds-css devDependencies ( #3213 )
...
* bug: added autoprefixer to ds-css devDeps
* ⬆️ Yarn lock
2024-10-10 13:29:56 +02:00
Vegard Haugstvedt and Ken
6ddea4eaf2
Feature/combobox pageup and pagedown ( #3158 )
...
* Add support for PageUp and PageDown in Combobox.FilteredOptions
* Remove console.log statements
* Add test for PageDown/PageUp
* Open FilteredOptions when pressing PageDown
* Prevent scrolling from moving the whole page
* Consistently scroll to the active element in useVirtualFocus by using useLayoutEffect
It seems like doing it with the state update sometimes encounters a race condition preventing the scrolling.
This removes the need for a private function handling index update and scrolling, simplifying the code.
* Updated test to fit new options order
* Prevent "Home" and "End" in Combobox from scrolling as well
* Add changeset
* Update @navikt/core/react/src/form/combobox/FilteredOptions/useVirtualFocus.ts
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
* useEffect seems to work the same way, and works better for SSR
* Removed code that did nothing
* Added the same check we have for PageDown, etc. Unsure if it is neccessary.
* Change behaviour for "Home" to move focus to the first element instead of Input
* Once we changed virtualFocus.moveFocusToTop to move focus to first element instead of the Input, we now need another function to move it to the Input where applicable.
* Update .changeset/tasty-cats-hear.md
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
---------
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
2024-10-10 12:05:13 +02:00
Halvor Haugan
acea9ebb78
Change "personnummer" to "fødselsnummer" ( #3211 )
2024-10-10 11:59:28 +02:00
Julian Nymark
fdbd634012
Referansesider: dagoversikten BreadCrumbs
2024-10-09 12:37:13 +02:00
Julian Nymark
dcf5452d28
Referansesider: dagoversikten content
2024-10-08 16:34:15 +02:00
Sjur
0a8c33bbbe
Justerte Danger-farger i LightMode ( #3210 )
...
Noen av HEX-verdiene i Danger LightMode er endret.
2024-10-08 15:26:07 +02:00
Vegard Haugstvedt
18b0cf5fa5
Bugfix/combobox disable autocomplete in firefox on android ( #3201 )
...
* Disable autocomplete in Combobox to "fix" issue where autocomplete is broken in Firefox on Android
The bug is that after three "correct" characters are entered in a row, the autocomplete inserts the third character incorrectly, messing up the text in the input.
This also happens in other implementations of autocomple, like W3C's ARIA Authoring Practices Guide combobox with inline autocomple.
* Add changeset
* Use type checking instead of useEffect to prevent client code from running server side
2024-10-08 12:37:07 +02:00
Julian Nymark
374a679bc3
Referansesider: ✨ dagoversikten.tsx
2024-10-08 11:53:09 +02:00
github-actions[bot] and github-actions[bot]
a2e020d4f3
Version Packages ( #3206 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-08 11:50:48 +02:00
Halvor Haugan
074c8da536
List: ✨ New size 'large' ( #3207 )
2024-10-08 11:30:47 +02:00
Ken and Halvor Haugan
bdbd6c24cc
[Dependencies] Replaced ts-node with tsx, removed dotenv ( #3198 )
...
* refactor: ds-react uses tsx instead of ts-node
* refactor: ds-tailwind uses tsx
* refactor: Website backup and search uses tsx
* refactor: Test urls and rss-feed uses tsx
* refactor: Prop-updates uses tsx
* refactor: All website scripts uses tsx
* refactor: removed dotenv dependency from website
* feat: removed all dependencies to dotenv
* bug: Remove need for env in validate build script
* test: Create empty env file
* test: Scope env-file to build-dir
* bug: Fallback to empty env when no env exsists
* feat: Better error-messaging when fetching new icons
* Update @navikt/aksel-icons/package.json
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-10-08 10:18:51 +02:00
Ken
f0e6c944d8
[Referansesider] Updated contrast tokens to new naming
2024-10-08 10:16:17 +02:00
Ken
22be148832
[Darkside] Moved contrast-tokens to text group
...
feat: Moved contrast tokens to 'text' collection
feat: Added support for adding custom scopes for each token
2024-10-08 10:06:43 +02:00
Ken and Halvor Haugan
aac12fe44f
[Linting] Fixed useExhaustiveDependencies in biome ( #3197 )
...
* feat: Update biome
* feat: migrate biome config
* misc: Ignore semantic-tag rule biome
* refactor: resolved breaking changes after biome update
* feat: remove old excluded biome rule
* feat: Removed a11y/useFocusableInteractive ignore
* refactor: Fix useExhaustiveDependencies biome
* memo: changeset
* memo: changeset gitmoji
* bug: Re-add selectedOptions to dependency array
* Update @navikt/core/react/src/overlays/dismissablelayer/DismissableLayer.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* bug: Fix initial focus for sidebar icon
* ⚡ remove reduntant memoization of isLimitReached
* bug: re-add sanity-plugin-iframe-pane
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-10-08 09:05:59 +02:00
Halvor Haugan
324358d086
FileUpload: 💥 Remove UNSAFE-prefix ( #3205 )
2024-10-07 15:16:25 +02:00
Ken
946cbeb016
[Liniting] Updated to biome v1.9 ( #3196 )
...
* feat: Update biome
* feat: migrate biome config
* misc: Ignore semantic-tag rule biome
* refactor: resolved breaking changes after biome update
* feat: remove old excluded biome rule
* feat: Removed a11y/useFocusableInteractive ignore
* refactor: Remove ariaRole rule
* bug: Remove extra fragments in dartepicker stories
* bug: Remove custom image rendering exception for safari on website
2024-10-05 15:41:23 +02:00
Sjur
f4d22dae68
Endret Neutral-farger Darth Mode ( #3204 )
...
Neutral-fargene ble hentet fra fargene med lavere saturation, som gjorde at de mistet hintet av blått. Endret til den originale skalaen.
2024-10-04 22:09:27 +02:00
Ken
ce2f5a9b90
[Darkside] Fixed missing test updates
2024-10-04 16:01:58 +02:00
github-actions[bot] and github-actions[bot]
cf167064eb
Version Packages ( #3203 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-04 15:25:08 +02:00
Ken
73a6ae1bf1
[Darkside] Fixed no_cache_paths for figma config CDN
2024-10-04 15:24:06 +02:00
Halvor Haugan
95c84e1d01
List: Explicitly set list-style on ol to override reset-CSS ( #3202 )
2024-10-04 15:14:16 +02:00
Ken
4675857e8f
[Darkside] Updated global colors config
...
feat: Avoid caching config for color-tokens
feat: Remove use of leonardo, hardcode global config
feat: Update 100-400 scale for darkmode
feat: Update 500-1000 scale for global colors
2024-10-04 15:06:32 +02:00
Julian Nymark
2a6e416b5c
Referansesider: 🐛 use master branch for GA
2024-10-04 12:50:43 +02:00
Julian Nymark
d3c3cafc97
Referansesider: 👷 point to maintained spa-deploy yml ( #3199 )
...
* Referansesider: 👷 point to maintained spa-deploy yml
new location: https://github.com/nais/deploy/tree/master/actions/spa-deploy
* Referansesider: 🐛 probably correct yml url (GH action)
2024-10-04 11:47:33 +02:00
Ken and Halvor Haugan
678fa6692b
[Darkside] Figma plugin for updating variables ( #3191 )
...
* feat: Implemented figma plugin
* feat: Can now detect production/development build
* feat: Now supports remote fetch for config
* misc: Stop reset from running by default
* feat:Semantic value handling
* feat: Pre-semantic implementation
* feat: Finished plugin API for semantic variables
* feat: Use this for Figma plugin extension
* bug: Fixed semantic collection naming
* bug: Handle reset correctly
* misc: avoid resetting when updating
* memo: Added comments
* bug: Ignore plugin buildfile from lint
* bug: Fix support for dynamic-page load in figma
* 📝 Better naming, simplified code-def syntax
* feat: Scoped ignorePattern for plugin.js
* memo: better logs for completing update
* Update @navikt/core/tokens/darkside/figma/plugin/AkselVariablesInterface.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update @navikt/core/tokens/darkside/figma/plugin/AkselVariablesInterface.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* memo: Removed extra space for info logging
* refactor: Simplify for-loop for semantic color modes
* refactor: Inline creation of mode, collection and variable
* refactor: readable mapping variables
* feat: Better error-handling if variable is null
* refactor: Remove redundant getModes function
* refactor: Remove redundant getModes function
* refactor: Remove plugin watch function
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-10-04 11:19:43 +02:00
Ken
87aeb94c64
[Dependencies] Sanity 3.59 update ( #3195 )
...
* feat: Updated to sanity 3.59
* bug: Sanity updated icon and media types, so everything broke
* bug: Fallback to default media in article previews if everything is normal
2024-10-03 16:35:00 +02:00
github-actions[bot] and github-actions[bot]
4714a5ff32
Version Packages ( #3181 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-03 16:01:01 +02:00
Halvor Haugan and Ken
ca1d9be88f
List: Add indentation and remove aria attributes ( #3184 )
...
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
2024-10-03 15:06:06 +02:00
Halvor Haugan
2654da8b64
update-article-views: Use latest docker image + remove reduntant stuff in workflow ( #3189 )
2024-10-03 08:52:48 +02:00
Julian Nymark
8d6418a594
Referansesider: 💄 use correct tokens
2024-10-02 14:24:10 +02:00
Julian Nymark
8269091fb8
Referansesider: 💄 outline offset for focus
2024-10-02 14:15:06 +02:00
Julian Nymark
fd82184057
Referansesider: 🎨 aktivitetsplan buttons & select
2024-10-02 14:11:31 +02:00
Julian Nymark
39f2cb8614
Referansesider: 🎨 aktivitetsplan main card
2024-10-02 13:57:07 +02:00
Julian Nymark
4bf298f363
Referansesider: 🎨 Tag to own component, flesh out cards for aktivitetsplan
2024-10-02 12:55:54 +02:00
Halvor Haugan and Ken
3a239e4e17
[aksel.nav.no] Show breakpoints in GuidePanel examples ( #3192 )
...
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
2024-10-02 12:23:10 +02:00
Halvor Haugan
4fcfaf3deb
[aksel.nav.no] Storybook: Change to Vite framework ( #3185 )
2024-10-02 10:14:17 +02:00
Julian Nymark
5dbc66daaa
Referansesider: 🚧 Aktivitetsplan
2024-10-02 09:53:17 +02:00
Halvor Haugan
555a46b5da
Adjust examples of Switch ( #3188 )
2024-10-01 13:55:03 +02:00
Julian Nymark
73b2bca156
Combobox: 💄 tweak the visibility of chevron ( #3187 )
...
* Combobox: 💄 tweak the visibility of chevron
* Combobox: 💄 dim visibility of icons for readonly datepicker, select, and combobox
* Combobox: 💄 dim visibility of icons for readonly datepicker, select, and combobox
* changeset
2024-10-01 13:47:53 +02:00
Julian Nymark
01411dc11f
referansesider: 💄 sykepenger++
2024-10-01 12:02:38 +02:00
Julian Nymark
b1b0d23863
Referansesider: 💄 use more tokens
2024-09-30 14:56:17 +02:00
Julian Nymark
cf59ce81bf
Combobox disabled fixes ( #3183 )
...
* Combobox: 💄 remove hover border color when disabled
* Combobox: 💄 remove hover effect on chips when disabled
2024-09-30 13:53:48 +02:00
Julian Nymark
00c0ff31e1
Combobox: 💄 remove hover border color when disabled ( #3182 )
2024-09-30 13:38:22 +02:00
Julian Nymark
d278060e59
Combobox: 🐛 implement Readonly + disabled ( #3180 )
...
* 🐛 [Combobox] implement disabled
* 💄 [Combobox] disabled
* ✨ [Combobox] implement readOnly
* 📝 [Combobox] add examples
* 📝 [Combobox] changeset
* 📝 [Combobox] changeset++
* 📝 [Combobox] stories (review fixes)
* 📝 [Combobox] stories (review fixes++)
* Combobox: 🎨 remove ToggleListButton when readonly or disabled
* Combobox: ♿ combobox input does not support native readonly, use nativeReadOnly={false}
* Revert "Combobox: 🎨 remove ToggleListButton when readonly or disabled"
This reverts commit e54a2eca32 .
* Combobox: remove unused code
2024-09-30 11:24:47 +02:00
Ken
e5d5b67262
[Referansesider] Migrated to new tokens
2024-09-27 14:13:54 +02:00
Ken
246f25cbaa
misc: Update darkmode config for tokens
2024-09-27 14:01:51 +02:00
Ken
b2a22438ad
bug: Fixed CDN-location for figma config
2024-09-27 12:58:30 +02:00
Ken and Halvor Haugan
8b8b724e40
[Darkside] Generate Token config to be consumed by Figma plugin ( #3172 )
...
* feat: Build figma config
* bug: Fix ignored gitignore config
* refactor: Rename collection -> name key
* feat: pre-update value to figma config
* feat: Re-resolve name with grouping
* feat: Better handling of relative units
* feat: Added better typings, workflow file
* feat: Updated name-parsing for pregen of config
* feat: Removed Unused eslint-disable directive
* feat: Extract figma scope when creating variables
* refactor: Simplified code by extracting logic
* feat: Updated workflow naming
* bug: re-add missing group for semantic color
* feat: Add metadata to figma config
* bug: Added missing 'contrast declaration
* bug: Calculate correct radius values
* refactor: Simplified config structure by unwrapping scopes
* refactor: Extracted logic for group check
* refactor: Only allow string or number as figma value in config
* feat: Added tests for value conversions
* refactor: Renamed figma config file
* update: Lock update
* refactor: Avoid using format as a workaround to extract token list
* Update @navikt/core/tokens/darkside/figma/index.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update @navikt/core/tokens/darkside/figma/create-tokens.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update @navikt/core/tokens/darkside/util.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* refactor: inline filter calls
* refactor: Better typing for as group declaration
* refactor: Avoid using objects as type definintions
* refactor: Inline semantic token check for roles
* refactor: date -> timestamp and NO locale
* refactor: token -> tokens
* refactor: removed redundant redaclaration of token name in test
* refactor: Avoid extra tests for same check
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-09-27 12:35:42 +02:00
Ken
9f9bdcc645
bug: Fixed old test for global tokens
2024-09-26 19:13:38 +02:00
Ken
82bdf8075a
[Tokens]: Update darkmode tokens and separate config support
...
feat: Updated darkmode tokens
feat: Split global color config into separate files
2024-09-26 19:09:01 +02:00
Julian Nymark
410e543825
🎨 [referansesider] minside eslint
2024-09-26 15:47:29 +02:00
Julian Nymark
40308e0e77
🎨 [referansesider] minside dokumentarkiv
2024-09-26 15:39:02 +02:00
Julian Nymark
fff309b573
💄 [referansesider] minside NotificationsPanel lightmode match figma
2024-09-26 14:44:44 +02:00
Julian Nymark
fe7c2de8fa
💄 [referansesider] minside PassiveCards++
2024-09-26 14:37:42 +02:00
Julian Nymark
6fedea0ba4
💄 [referansesider] minside PassiveCards
2024-09-25 15:02:05 +02:00
Halvor Haugan and Ken
9811327509
[aksel.nav.no] Adjust examples of Switch ( #3175 )
...
---------
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
2024-09-25 14:21:19 +02:00
Ken
cf2034f914
[Aksel.nav.no] Open all Accordions when searched ( #3179 )
...
* feat: Open all Accordions when searched
* refactor: Type node as possibly undefined
2024-09-25 14:19:15 +02:00
dependabot[bot]
9e5e7f8fdc
build(deps): Bump rollup from 3.29.4 to 3.29.5 ( #3178 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 3.29.4 to 3.29.5.
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v3.29.4...v3.29.5 )
---
updated-dependencies:
- dependency-name: rollup
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-25 13:49:55 +02:00
Ken
e9dc171d74
Referansesider: Dynamic route-list generation for header and homepage
2024-09-25 13:25:43 +02:00
Julian Nymark
544b80eeae
💄 [referansesider] Minside Cards
2024-09-25 13:17:10 +02:00
Julian Nymark
4358b53095
🎨 [referansesider] move Styled components to top layer++
2024-09-25 12:07:57 +02:00
Julian Nymark
de57099b09
🎨 [referansesider] move Styled components to top layer
2024-09-25 11:59:57 +02:00
Ken
5a97cb422d
feat: Add cache-control to index.html metadata referansesider
2024-09-25 11:16:03 +02:00
Ken
67fb3bb3a1
feat: Added theme switcher for referansesider
2024-09-25 10:52:03 +02:00
Ken
7bdd5cb748
bug: Fixes darkmode cascading for darkside tokens
2024-09-25 10:10:24 +02:00
github-actions[bot] and github-actions[bot]
62bcab1ab0
Version Packages ( #3170 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-25 09:36:07 +02:00
Halvor Haugan
61e60d9556
Modify changeset text for Accordion change
2024-09-24 17:17:18 +02:00
Halvor Haugan
9c1eba4450
Accordion: Remove position:relative to fix popover clipping
2024-09-24 16:53:46 +02:00
Julian Nymark
63986d9872
💄 [referansesider] remove overflow
2024-09-24 16:43:04 +02:00
Ken
761c8ef64f
refactor: Update tokens use in Piktogram for sykepenger page
2024-09-24 16:31:30 +02:00
Ken
4b86b555d8
feat: Referansesider now properly handles nested routing
2024-09-24 16:10:58 +02:00
Julian Nymark
8e1e294fda
💄 [referansesider] minside add icons
2024-09-24 15:51:55 +02:00
Halvor Haugan
f71594e477
ErrorSummary: Remove aria-attributes. ( #3171 )
2024-09-24 15:41:49 +02:00
Julian Nymark
d2a89851cd
💄 [referansesider] responsive design fix
2024-09-24 15:31:25 +02:00
Ken
d27da71304
feat: Refactored to use more tokens in referansesider
2024-09-24 15:26:19 +02:00
Julian Nymark
fcf17fc750
💄 [referansesider] minside card CSS
2024-09-24 15:24:41 +02:00
Julian Nymark
e1b091358b
🎨 [referansesider] add content to minside
2024-09-24 15:15:15 +02:00
dependabot[bot]
988ad39ad1
build(deps): Bump rollup in /examples/referansesider ( #3173 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 4.21.3 to 4.22.4.
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v4.21.3...v4.22.4 )
---
updated-dependencies:
- dependency-name: rollup
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-24 14:00:52 +02:00
Ken
524c87e3bd
feat: Update referansesider header fontsize
2024-09-24 13:54:48 +02:00
Ken
8cf6123656
feat: Created /komponenter route for component-testing, refactored button-component
...
feat: Use func for sykepenger function
2024-09-24 13:32:24 +02:00
Julian Nymark
866e6a168c
💄 [referansesider] make sykepenger more responsive
2024-09-24 13:16:47 +02:00
Ken
bc2be15c55
Update referansesider
...
- feat: Refactor to use aksel-icons package
- refactor: use google import for font instead of inline files
2024-09-24 13:06:55 +02:00
Julian Nymark
4e6fc073fe
🐛 [referansesider] only have tanstack router devtools in dev mode
2024-09-24 12:59:56 +02:00
Ken
e895c691ce
[Referansesider] SPA deploy to aksel-referansesider.ansatt.dev.nav.no ( #3174 )
...
* bug: Fix build-script
* feat: Workflow for SPA deploy of referansesider
* feat: Add workflow dispatch to SPA deploy
2024-09-24 12:40:08 +02:00
Halvor Haugan
186c0fec07
🆙 Upgrade some packages ( #3165 )
2024-09-23 17:24:04 +02:00
Ken
746a58b663
feat: Updated darkside tokens with figma
2024-09-23 16:30:13 +02:00
Julian Nymark
d767aadde3
🎨 [referansesider] add crude dekoratør
2024-09-23 14:02:30 +02:00
Ken and Halvor Haugan
4359428b40
[Pagination] Deprecated page-prop, synced design with Figma ( #3164 )
...
* feat: Mark page-prop as deprecated in pagination
* feat: Mark page-prop as deprecated in pagination with better comment
* feat: Synced pagination with Figma
* memo: Changeset
* memo: Add classes to deprecationlist in stylelint config
* memo: changeset for stylelint
* memo: changeset for stylelint
* Update @navikt/aksel-stylelint/src/deprecations.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update .changeset/thirty-snakes-doubt.md
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-09-23 12:28:52 +02:00
Halvor Haugan
d583276428
Combobox: 🏷️ Better typing for maxSelected prop ( #3169 )
2024-09-23 10:07:06 +02:00
github-actions[bot] and github-actions[bot]
0d29a0708a
Version Packages ( #3151 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-20 10:33:33 +02:00
Vegard Haugstvedt
d6b685c4c5
Bugfix/combobox list items with multiple spaces get invalid ( #3162 )
...
* Fix issue with whitespace in the id attribute for options with multiple spaces
* Add changeset
2024-09-20 09:32:34 +02:00
Julian Nymark
17eaf6139b
🎨 [referansesider] sykepenger++
2024-09-20 00:38:18 +02:00
Julian Nymark
f0820f4f89
🎨 [referansesider] sykepenger++
2024-09-20 00:38:18 +02:00
Halvor Haugan
cd9dc047ed
Upgrade dockerimage ( #3160 )
2024-09-19 15:06:56 +02:00
Julian Nymark
bc711c9653
💄 [referansesider] css tweaks for Accordion
2024-09-19 13:00:01 +02:00
Julian Nymark
5fd1d385cf
🎨 [referansesider] add PillLink
2024-09-19 12:22:13 +02:00
dependabot[bot] and Halvor Haugan
f44acf4216
build(deps-dev): Bump vite in /examples/referansesider ( #3154 )
...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ) from 5.4.5 to 5.4.6.
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.6/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v5.4.6/packages/vite )
---
updated-dependencies:
- dependency-name: vite
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Halvor Haugan <halvor.haugan@nav.no >
2024-09-19 10:47:21 +02:00
Julian Nymark
302eed3908
💄 [referansesider] use new tokens 👏
2024-09-18 17:08:39 +02:00
Julian Nymark
24bec11799
💄 [referansesider] Accordion
2024-09-18 16:56:39 +02:00
Ken and Halvor Haugan
72b2b3875b
[Tokens] Updated to new config ( #3157 )
...
* feat: Update style-dictionary to v4
* feat: Rewritten tokens to typescript
* feat: Update to new token config
* refactor: removed unused types
* feat: Remove 'A'-prefix in js token
* update: Lock update
* testing: Updated tests to correctly mirror wanted behaviour
* refactor: Removed output fallbacks
* Update @navikt/core/tokens/darkside/tokens/contrast.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* refactor: Update white definition in contrast
* refactor: Remove duplicate global color definition
* refactor: Avoid accumulator spread in reduce
* refactor: rename 'mode' -> 'theme'
* Update @navikt/core/tokens/darkside/sd-format.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* feat: Added comment support to JS-tokens
* Update @navikt/core/tokens/darkside/tests/validate-config.test.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* refactor: Use correct config in tests
* Update @navikt/core/tokens/darkside/util.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* feat: Added returnType for semanticTokensForAllRolesConfig
* feat: Types token configurations
* feat: Updated color-scale to latest figma-update
* feat: Types mergeConfig function
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-09-18 16:43:42 +02:00
Halvor Haugan
e023ace28d
Adjust examples of Accordion ( #3159 )
2024-09-18 16:06:33 +02:00
Julian Nymark
0129159812
🚚 [referansesider] consistent file naming
2024-09-18 15:48:42 +02:00
Julian Nymark
72fd005990
🎨 [referansesider] clsx dep + more content
2024-09-18 15:41:32 +02:00
Julian Nymark
104427d7ef
🎨 [referansesider] more work on Sykepenger
2024-09-18 13:57:10 +02:00
Julian Nymark
996118532b
➕ [referansesider] tw-merge
2024-09-18 13:56:31 +02:00
Julian Nymark
1cdf2c93a8
✨ [referansesider] add icon
2024-09-18 13:55:51 +02:00
Julian Nymark
82e66e2a4b
✨ [referansesider] add icon
2024-09-18 13:55:41 +02:00
Julian Nymark
03495f8343
💄 [referansesider] adjust sykepenger header
2024-09-18 10:40:51 +02:00
Ken and Halvor Haugan
17031eafbe
[Tokens] Updated config to Style-dictionary v4, rewritten to typescript ( #3156 )
...
* feat: Update style-dictionary to v4
* feat: Rewritten tokens to typescript
* Update @navikt/core/tokens/config/build.ts
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Update @navikt/core/tokens/package.json
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* update: Lock update
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-09-18 10:17:41 +02:00
Julian Nymark
fe3c42282a
🎨 [referansesider] add sykepenger header
2024-09-18 09:58:31 +02:00
Julian Nymark
7defbd9163
💄 [referansesider] remove broken negative margin calc css
2024-09-17 16:13:45 +02:00
Julian Nymark
4a402557f6
🎨 [referansesider] more scaffolding, remove unused CSS
2024-09-17 16:12:24 +02:00
Halvor Haugan
f7ff964162
LanguageProvider: Remove spreading of empty object ( #3153 )
2024-09-17 15:28:41 +02:00
Julian Nymark
6bad72e891
🔥 [referansesider] remove generated file from git
2024-09-17 14:18:49 +02:00
Julian Nymark
b0b493bc08
➕ [referansesider] add tailwindcss
2024-09-17 14:13:36 +02:00
Julian Nymark
0720f22467
➕ [referansesider] add tailwindcss
2024-09-17 14:11:00 +02:00
Halvor Haugan
f4137e4df8
Adjust default story on ExpansionCard
2024-09-17 14:01:32 +02:00
Julian Nymark
730538cfb4
🎨 [referansesider] add router
2024-09-17 13:35:19 +02:00
Halvor Haugan
a63c3792cc
Simplify PR template and add guideline about changeset message ( #3138 )
2024-09-16 15:55:04 +02:00
Julian Nymark
dd03bd8705
🚧 [referansesider] add example for variant in styled-components
2024-09-16 15:34:16 +02:00
Julian Nymark
97eec24ae0
🚧 [referansesider] do not use existing components & CSS
2024-09-16 15:26:06 +02:00
Julian Nymark
09e4f70365
🚧 [referansesider] use local dependencies for react as well
2024-09-16 13:56:02 +02:00
Julian Nymark
ce694fa37c
🚧 [referansesider] use local dependencies for css & tokens
2024-09-16 13:50:53 +02:00
Julian Nymark
7f27e19032
🚧 [referansesider] correctly import design token
2024-09-16 13:21:35 +02:00
Julian Nymark
12f6ae9134
🚧 [referansesider] use styled-components, try to import our tokens
2024-09-16 13:13:42 +02:00
Julian Nymark
3c6459305e
🚧 [referansesider] add aksel dependencies
2024-09-16 12:47:26 +02:00
Julian Nymark
60cf2b863b
✨ (referansesider) init vite project
2024-09-16 12:19:26 +02:00
Halvor Haugan
78779fbb56
🆙 Upgrade to Storybook 8.3 ( #3150 )
2024-09-16 09:53:28 +02:00
SebastianJarsve
59156e603c
Fix link in CONTRIBUTING.md ( #3152 )
2024-09-16 09:42:36 +02:00
Julian Nymark
057bfe85be
💄 tweak CSS for list icons ( #3148 )
2024-09-13 16:17:51 +02:00
github-actions[bot] and github-actions[bot]
d2424ec22a
Version Packages ( #3149 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-13 14:03:22 +02:00
1c11a6a3b9
Aksel v7 ( #3139 )
...
* Tooltip labeling (#3094 )
* feat: Better labeling of Tooltip
* feat: Better keyshortcuts for screenreaders in Tooltip
* memo: Updated story
* bug: Better error logging for example-parsing
* refactor: describeChild -> describesChild
* fire: Removed extra story
* bug: removed extra tabIndex
* memo: Update Tooltip demo description
* Update aksel.nav.no/website/pages/eksempler/tooltip/labeling.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* refactor: Updated defaultValue for describesChild
* bug: removed Tooltip prop from ToggleGroup
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* Tailwind: Fixed 'screen' -> 'screens' bug to properly adopt breakpoints. (#3119 )
* 💥 Screen -> Screens in tailwind-config
* refactor: Adopt updated screens-config in Aksel.nav.no project
* Icons: Removed old and renamed icons (#3120 )
* 💥 Removed renamed icons
* ErrorSummary: Add fallback for heading + better focus handling (#3140 )
Co-authored-by: Ken <ken.aleksander@gmail.com >
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* feat: Added composeEventHandlers to onFocus in ErrorSummary
* memo: Removed inaccurate description for tooltip demo
* feat: Omitted tabIndex from ErrorSummary
---------
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
Co-authored-by: Ken <ken.aleksander@gmail.com >
2024-09-13 13:48:56 +02:00
Julian Nymark and Ken
46a14b19dd
translations in Provider ( #3136 )
...
* 🚧 translations in Provider
* ♻️ consume providerContext translations in useI18n + example usage (FormProgress)
* changeset
* 🎨 keep component level translations
* ♻️ extract language provider into own provider
* 📝 update changeset doc
* 🎨 undo all changes to original Provider
* 📝 changeset text
* ✅ update test for i18n changes
* refactor: Moved location of LanguageProvider, removed changeset
---------
Co-authored-by: Ken <ken.aleksander@gmail.com >
2024-09-12 15:36:04 +02:00
45a50a531e
Version Packages ( #3137 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ken <26967723+KenAJoh@users.noreply.github.com >
2024-09-12 14:48:31 +02:00
Halvor Haugan
c506c1787f
[aksel.nav.no] SuggestionBlock for beta patterns ( #3144 )
2024-09-12 11:41:02 +02:00
dependabot[bot]
36ada01453
build(deps): Bump express from 4.19.2 to 4.20.0 ( #3146 )
...
Bumps [express](https://github.com/expressjs/express ) from 4.19.2 to 4.20.0.
- [Release notes](https://github.com/expressjs/express/releases )
- [Changelog](https://github.com/expressjs/express/blob/master/History.md )
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.20.0 )
---
updated-dependencies:
- dependency-name: express
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 15:01:20 +02:00
Ken
88201e34d8
🔒 Moved chromatic env token to .env and github secrets ( #3145 )
2024-09-11 11:56:52 +02:00
Halvor Haugan
14fed5aa95
Adjust examples of Stepper ( #3143 )
2024-09-10 12:52:40 +02:00
Ken
672fdb9d0c
[Aksel.nav.no, Button docs] Renamed 'frameworks' example to 'button as link'. ( #3135 )
...
* memo: Updated storyname for button framework
* memo: Updated example with link i description and link -> nextlink
* testing: Added test to check link/markdown-parsing in description-field
* test for playwright
* bug: Playroom does not support Nextjs link
* bug: Turn off sandbox for bytton-demo missing import in playroom
2024-09-10 12:42:12 +02:00
Halvor Haugan
1d585e6667
Form validation demo improvements ( #3132 )
2024-09-09 12:51:45 +02:00
Ken
1b2dc88968
[Icons] Added new icons for face category ( #3134 )
...
* feat: Added new icons for face category
* Update .changeset/lazy-dryers-do.md
2024-09-09 09:48:08 +02:00
Halvor Haugan
c8b79090d2
Combobox: Add support for onBlur, and omit props that have no effect ( #3125 )
2024-09-09 09:31:18 +02:00
github-actions[bot] and github-actions[bot]
914b0dbcb0
Version Packages ( #3117 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-04 14:27:45 +02:00
Lars Eirik Korsgaard Hansen
e271bc0aaa
🐛 Combobox: trailing spaces are no longer accepted autocomplete-letters ( #3105 )
...
* 🐛 spaces no longer act as an accepted autocomplete-letter
* changeset
* simplified previous code, added edge case to story
2024-09-04 11:01:29 +02:00
Halvor Haugan
052750b4b9
Form validation examples ( #3100 )
2024-09-03 22:03:58 +02:00
Ken and Halvor Haugan
531e720a35
Update sanity ( #3096 )
...
* feat: Update sanity
* feat: Update sanity minor
* feat: Bumped sanity to 3.55
* Update aksel.nav.no/website/sanity/schema/objects/templates/ExampletextBlock.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-09-02 12:50:13 +02:00
Julian Nymark and Halvor Haugan
c98ab95750
Combobox: 🚸 hide caret on select (until options list opened) ( #3071 )
...
* 🚸 hide caret on select (until list opened)
* 🔥 remove console.log()
* 🎨 invert varname for simpler CSS
* 🚸 also enable caret on "re-click" (while still focused)
* 🚸 DX improvement, placeholders++
* 🚸 (combobox) always show caret for multiple select
* 🚸 hide caret on multiselect + isLimitReached
* 🔥 remove console.log
* 🐛 hide caret when single has a selection (combobox)
* 🐛 hide caret if isLimitReached
* 🎨 remove unnecessary useState()
* 🐛 correct deps for useEffect
* 🐛 add maxSelected as dep
* Update @navikt/core/react/src/form/combobox/FilteredOptions/filteredOptionsContext.tsx
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* changeset
* 🐛 avoid setting placeholder twice
* Update .changeset/fresh-boxes-enjoy.md
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
* 🔥 remove redundant placeholder
---------
Co-authored-by: Halvor Haugan <83693529+HalvorHaugan@users.noreply.github.com >
2024-09-02 12:14:25 +02:00
Ken
1cea314de0
bug: Avoid RelatertInnhold from erroring when empty
2024-09-02 10:33:47 +02:00
Ken
7c5538fe5e
Security token update ( #3128 )
...
* feat: Token re-roll
* demo: Placeholder frontpage
* Revert "demo: Placeholder frontpage"
This reverts commit b7dbc3a65b .
* feat: Token re-roll for slackbot
* bug: Added env to playwright url-generation
2024-09-01 23:18:35 +02:00
Halvor Haugan
2c346a81dd
Adjust example heading text for ErrorSummary ( #3126 )
2024-08-30 16:35:07 +02:00
Julian Nymark
32c13c0363
combobox 🚸 tweaks for single select ( #3124 )
...
* combobox 🚸 tweaks for single select
- hide the selected value when inputing text
- delete input value on blur (you must actually select something with
intent to select it, this prevents the field from "looking like it's
filled in when it's actually not")
* changeset
* 🐛 use clearInput() instead of setValue("")
* 💄 match x-position of input to the selected option
2024-08-30 09:35:48 +02:00
Vegard Haugstvedt
aca5143454
Bugfix/combobox selecting autocompleted word is broken ( #3110 )
...
* Add test case for selecting autocompleted word after first character typed, which is currently broken (selects first in list, not the autocompleted word)
* Select the correct option when pressing enter after autocompleting a word in Combobox
Fixes #3106
* Added changeset
2024-08-28 13:45:13 +02:00
Halvor Haugan
6220b9ce69
Icons: Adjust keywords for ClipboardXMark ( #3121 )
2024-08-28 12:07:35 +02:00
Julian Nymark
8540bd756b
🚨 no-console ( #3078 )
...
* 🚨 no-console
* 🚨 also fail on warnings
* 🔥 undo whitespace change
* 🔥 remove whitespace again?
* 🐛 don't lint js with ts rules
* 🚨 convert some log -> info
* 🐛 avoid the max-warnings bug failing on ignored files
* Revert "🐛 avoid the max-warnings bug failing on ignored files"
This reverts commit 0f7c169daf .
* 🐛 exclude some generated files
* 🔥 remove debug log
* 🔥 remove debug log
* 🔥 remove debug log
2024-08-26 12:01:19 +02:00
dependabot[bot]
3d2a9da528
build(deps): Bump micromatch from 4.0.7 to 4.0.8 ( #3116 )
...
Bumps [micromatch](https://github.com/micromatch/micromatch ) from 4.0.7 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases )
- [Changelog](https://github.com/micromatch/micromatch/blob/4.0.8/CHANGELOG.md )
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8 )
---
updated-dependencies:
- dependency-name: micromatch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 10:09:42 +02:00
Ken
9907ef08a6
feat: Updated Clipboard-icons ( #3113 )
2024-08-26 09:55:02 +02:00