Align v10.48 (#907)

* chore(deps-dev): upgrade carbon-components to v10.48.0

* feat(ui-shell): support HeaderNavMenu with current item

* refactor(tile): remove unnecessary "position: relative" style

* refactor(tile): remove unused ref

* feat(inline-notification): make title/subtitle slottable

Closes #883

* feat(toast-notification): make title/subtitle/caption slottable

* chore(notification): deprecate NotificationTextDetails
This commit is contained in:
Eric Liu 2021-11-12 16:25:02 -08:00 committed by GitHub
commit 27ba4350cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 128 additions and 40 deletions

View file

@ -16,6 +16,13 @@
/** Obtain a reference to the HTML anchor element */
export let ref = null;
import { getContext } from "svelte";
const id = "ccs-" + Math.random().toString(36);
const ctx = getContext("HeaderNavMenu");
$: if (ctx) ctx.updateSelectedItems({ id, isSelected });
</script>
<li>