From 63e79657451965c01c452bb2b7dafc0f7c9d07b7 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 20 Mar 2021 16:28:29 -0700 Subject: [PATCH] Fixes (#575) * fix(context-menu): only prevent default keydown behavior if menu is open * docs(notification): update copy * docs(select): update item groups example to use hidden default option * docs: increase max-height to render UIShell, UnorderedList items * fix(ui-shell): remove iconDescription prop from HeaderNavMenu #566 Fixes #566 --- COMPONENT_INDEX.md | 13 ++++---- docs/src/COMPONENT_API.json | 10 ------- docs/src/pages/_layout.svelte | 2 +- .../pages/components/InlineNotification.svx | 30 +++++++++---------- docs/src/pages/components/Select.svx | 2 +- .../pages/components/ToastNotification.svx | 28 ++++++++--------- src/ContextMenu/ContextMenu.svelte | 3 +- src/UIShell/GlobalHeader/HeaderNavMenu.svelte | 10 ++----- types/UIShell/GlobalHeader/HeaderNavMenu.d.ts | 6 ---- 9 files changed, 41 insertions(+), 63 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index ad9ee831..b24deab3 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1662,13 +1662,12 @@ None. ### Props -| Prop name | Kind | Reactive | Type | Default value | Description | -| :-------------- | :--------------- | :------- | :----------------------------------------- | ------------------------------ | --------------------------------------------- | -| ref | let | Yes | null | HTMLAnchorElement | null | Obtain a reference to the HTML anchor element | -| expanded | let | Yes | boolean | false | Set to `true` to toggle the expanded state | -| href | let | No | string | "/" | Specify the `href` attribute | -| text | let | No | string | -- | Specify the text | -| iconDescription | let | No | string | "Expand/Collapse" | Specify the ARIA label for the chevron icon | +| Prop name | Kind | Reactive | Type | Default value | Description | +| :-------- | :--------------- | :------- | :----------------------------------------- | ------------------ | --------------------------------------------- | +| ref | let | Yes | null | HTMLAnchorElement | null | Obtain a reference to the HTML anchor element | +| expanded | let | Yes | boolean | false | Set to `true` to toggle the expanded state | +| href | let | No | string | "/" | Specify the `href` attribute | +| text | let | No | string | -- | Specify the text | ### Slots diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 515ac1e7..0a89fd78 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -4057,16 +4057,6 @@ "isFunction": false, "constant": false, "reactive": true - }, - { - "name": "iconDescription", - "kind": "let", - "description": "Specify the ARIA label for the chevron icon", - "type": "string", - "value": "\"Expand/Collapse\"", - "isFunction": false, - "constant": false, - "reactive": false } ], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], diff --git a/docs/src/pages/_layout.svelte b/docs/src/pages/_layout.svelte index bb4359af..346113de 100644 --- a/docs/src/pages/_layout.svelte +++ b/docs/src/pages/_layout.svelte @@ -260,6 +260,6 @@ } .bx--side-nav__submenu[aria-expanded="true"] + .bx--side-nav__menu { - max-height: 120rem; + max-height: 124rem; } diff --git a/docs/src/pages/components/InlineNotification.svx b/docs/src/pages/components/InlineNotification.svx index e6ed71c1..80ff1f4a 100644 --- a/docs/src/pages/components/InlineNotification.svx +++ b/docs/src/pages/components/InlineNotification.svx @@ -9,15 +9,15 @@ source: Notification/InlineNotification.svelte ### Default (error) - + ### Hidden close button - + ### With actions - +
Learn more
@@ -25,18 +25,18 @@ source: Notification/InlineNotification.svelte ### Notification variants - - - - - - + + + + + + ### Low contrast - - - - - - + + + + + + diff --git a/docs/src/pages/components/Select.svx b/docs/src/pages/components/Select.svx index e28a802e..f7f91f60 100644 --- a/docs/src/pages/components/Select.svx +++ b/docs/src/pages/components/Select.svx @@ -36,7 +36,7 @@ components: ["Select", "SelectItem", "SelectItemGroup", "SelectSkeleton"] ### Item groups -