From 664e88ecd388c35c85d4fd249840e1e3cafd4684 Mon Sep 17 00:00:00 2001 From: Anders Date: Wed, 20 Nov 2024 12:59:39 +0100 Subject: [PATCH] chore: minor spelling improvements (#4306) --- .../docs/uilib/about-the-lib/releases/eufemia/v10-info.mdx | 4 ++-- .../docs/uilib/extensions/forms/feature-fields/Date/demos.mdx | 2 +- .../dnb-design-system-portal/src/shared/menu/SidebarMenu.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/dnb-design-system-portal/src/docs/uilib/about-the-lib/releases/eufemia/v10-info.mdx b/packages/dnb-design-system-portal/src/docs/uilib/about-the-lib/releases/eufemia/v10-info.mdx index 1b91730ef90..2fbd71f4e1b 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/about-the-lib/releases/eufemia/v10-info.mdx +++ b/packages/dnb-design-system-portal/src/docs/uilib/about-the-lib/releases/eufemia/v10-info.mdx @@ -367,7 +367,7 @@ The Anchor was moved from `/elements` to `/components`. 2. Only camelCase props are supported for Drawer, so you will need to update the prop names. 3. `Modal.Inner` or `Modal.Content` converts to `Drawer.Body`. - 4. `Modal.Bar` converts to `Drawer.Navigaton`. + 4. `Modal.Bar` converts to `Drawer.Navigation`. 5. `Modal` was a class component and `Drawer` is a functional component. When you convert from `` or `` to `` – follow these steps: @@ -378,7 +378,7 @@ The Anchor was moved from `/elements` to `/components`. 2. Only camelCase props are supported for Dialog, so you will need to update the prop names. 3. `Modal.Inner` or `Modal.Content` converts to `Dialog.Body`. - 4. `Modal.Bar` converts to `Dialog.Navigaton`. + 4. `Modal.Bar` converts to `Dialog.Navigation`. 5. `Modal` was a class component and `Dialog` is a functional component. ### [Lists](/uilib/elements/lists) diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/demos.mdx index 8dbbf157951..058224450f0 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/demos.mdx +++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/demos.mdx @@ -22,7 +22,7 @@ import * as Examples from './Examples' The calendar will be prevented from automatically closing when the submit or cancel buttons are visible, to ensure that the user is actually able to interact with them after date selection. -To enable the picker to close automatically, you have to set `showCancelButton` to `false`, to override the default behaviour. +To enable the picker to close automatically, you have to set `showCancelButton` to `false`, to override the default behavior. diff --git a/packages/dnb-design-system-portal/src/shared/menu/SidebarMenu.tsx b/packages/dnb-design-system-portal/src/shared/menu/SidebarMenu.tsx index 593b12791e0..4e9b32e1cc5 100644 --- a/packages/dnb-design-system-portal/src/shared/menu/SidebarMenu.tsx +++ b/packages/dnb-design-system-portal/src/shared/menu/SidebarMenu.tsx @@ -636,7 +636,7 @@ function groupNavItems(navItems: NavItem[], location: Location) { // Define item object reference in hashmap hashmap[itemId] = hashItem - // Add all toplevel heading object references to topLevelHeadings array + // Add all top level heading object references to topLevelHeadings array // so that we wont have to loop through the array a second time to sort out top level headings if (item.level === 1) { topLevelHeadings.push(hashmap[itemId])