From 6fc71601dddb3c24351e3152272465f916d9d2d9 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 10 Aug 2022 16:25:27 -0400 Subject: [PATCH] fix attribute --- docs/resources/changelog.md | 1 + src/components/popup/popup.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index d1440d6b6..b6ccbc748 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -14,6 +14,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis - Added read-only custom properties `--auto-size-available-width` and `--auto-size-available-height` to `` to improve support for overflowing popup content - Fixed a bug where auto-size wasn't being applied to `` and `` - Fixed a bug in `` that caused auto-size to kick in before flip +- Fixed a bug in `` that prevented the `arrow-padding` attribute from working as expected - Removed the default hover effect in `` to make selections more obvious ## 2.0.0-beta.80 diff --git a/src/components/popup/popup.ts b/src/components/popup/popup.ts index 583a3dacb..fbf5bb1f7 100644 --- a/src/components/popup/popup.ts +++ b/src/components/popup/popup.ts @@ -89,7 +89,7 @@ export default class SlPopup extends LitElement { * The amount of padding between the arrow and the edges of the popup. If the popup has a border-radius, for example, * this will prevent it from overflowing the corners. */ - @property({ type: Number }) arrowPadding = 10; + @property({ attribute: 'arrow-padding', type: Number }) arrowPadding = 10; /** * When set, placement of the popup will flip to the opposite site to keep it in view. You can use