From e1471ec9a12aa43df3e824f4b676c7b4c6a0377f Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Fri, 24 Sep 2021 08:31:54 -0400 Subject: [PATCH] change default dropdown distance --- docs/resources/changelog.md | 1 + src/components/dropdown/dropdown.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index 169c9651..172e0391 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -19,6 +19,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis - Added the `--speed` custom property to `` - Added the `--size` and `--track-width` custom properties to `` - Added tests for `` [#530](https://github.com/shoelace-style/shoelace/pull/530) +- Changed the default `distance` in `` from `2` to `0` - Fixed a bug where `` wasn't using a border radius token [#523](https://github.com/shoelace-style/shoelace/issues/523) - Fixed a bug in the Remix Icons example where some icons would 404 [#528](https://github.com/shoelace-style/shoelace/issues/528) - Updated `` to use only CSS for styling diff --git a/src/components/dropdown/dropdown.ts b/src/components/dropdown/dropdown.ts index 678aa78e..20fb79f6 100644 --- a/src/components/dropdown/dropdown.ts +++ b/src/components/dropdown/dropdown.ts @@ -79,7 +79,7 @@ export default class SlDropdown extends LitElement { @property({ attribute: false }) containingElement: HTMLElement; /** The distance in pixels from which to offset the panel away from its trigger. */ - @property({ type: Number }) distance = 2; + @property({ type: Number }) distance = 0; /** The distance in pixels from which to offset the panel along its trigger. */ @property({ type: Number }) skidding = 0;