Skip to content

Commit

Permalink
chore: minor spelling improvements (#4306)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored Nov 20, 2024
1 parent b862dc8 commit 664e88e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<Modal />` or `<Modal mode="dialog" />` to `<Dialog />` – follow these steps:
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<Examples.AutoClose />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 664e88e

Please sign in to comment.