From edf33ca2d2ab4417fd5f5d211c3be79b7b4d9d55 Mon Sep 17 00:00:00 2001 From: metonym Date: Wed, 31 Aug 2022 19:25:51 -0700 Subject: [PATCH 001/652] fix(list-box-menu-item): do not scroll entire page when using keyboard navigation (#1474) --- src/ListBox/ListBoxMenuItem.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ListBox/ListBoxMenuItem.svelte b/src/ListBox/ListBoxMenuItem.svelte index d2318971..0679ba31 100644 --- a/src/ListBox/ListBoxMenuItem.svelte +++ b/src/ListBox/ListBoxMenuItem.svelte @@ -14,7 +14,7 @@ $: title = isTruncated ? ref?.innerText : undefined; $: if (highlighted && !ref?.matches(":hover")) { // Scroll highlighted item into view if using keyboard navigation - ref.scrollIntoView({ block: "end" }); + ref.scrollIntoView({ block: "nearest" }); } From c02663486b5d06b08b28f86039e4afd70d3145ed Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Wed, 31 Aug 2022 19:27:48 -0700 Subject: [PATCH 002/652] v0.70.4 --- CHANGELOG.md | 6 ++++++ COMPONENT_INDEX.md | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3aac96e0..12aad626 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +## [0.70.4](https://github.com/carbon-design-system/carbon-components-svelte/releases/tag/v0.70.4) - 2022-08-31 + +**Fixes** + +- correctly scroll item into view when keyboard navigating `Dropdown`, `ComboBox`, `MultiSelect` + ## [0.70.3](https://github.com/carbon-design-system/carbon-components-svelte/releases/tag/v0.70.3) - 2022-08-31 **Fixes** diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 29f85e80..cb80af4e 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1,6 +1,6 @@ # Component Index -> 165 components exported from carbon-components-svelte@0.70.3. +> 165 components exported from carbon-components-svelte@0.70.4. ## Components diff --git a/package.json b/package.json index 190fdc2e..9794113d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carbon-components-svelte", - "version": "0.70.3", + "version": "0.70.4", "license": "Apache-2.0", "description": "Svelte implementation of the Carbon Design System", "svelte": "./src/index.js", From 7c1ca3fa74d953b6c554a07816740433928245b0 Mon Sep 17 00:00:00 2001 From: metonym Date: Fri, 2 Sep 2022 08:36:39 -0700 Subject: [PATCH 003/652] fix(button): avoid left margin style for icon-only buttons (#1477) Fixes #1476 --- src/Button/Button.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Button/Button.svelte b/src/Button/Button.svelte index d6375178..54bdc1b3 100644 --- a/src/Button/Button.svelte +++ b/src/Button/Button.svelte @@ -175,7 +175,7 @@