diff --git a/package.json b/package.json index ce93d5f..a216ede 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tp/tp-dropdown", - "version": "1.4.0", + "version": "1.5.0", "description": "", "main": "tp-dropdown.js", "scripts": { diff --git a/tp-dropdown.js b/tp-dropdown.js index 639666e..9cc3dce 100644 --- a/tp-dropdown.js +++ b/tp-dropdown.js @@ -117,7 +117,7 @@ class TpDropdown extends BaseElement { opacity: 1; } - #list { + #popup { pointer-events: none; transition: opacity 0ms; opacity: 0; @@ -126,12 +126,12 @@ class TpDropdown extends BaseElement { height: auto; } - #list[open] { + #popup[open] { pointer-events: all; transition: opacity 180ms; opacity: 1; border-radius: 2px; - background: #FAFAFA; + background: var(--tp-dropdown-popup-bg, #FAFAFA); height: auto; box-shadow: var(--shadow-2dp); } @@ -202,7 +202,7 @@ class TpDropdown extends BaseElement { @media all and (min-width: 0) and (max-width: 480px) { - :host(:not([not-responsive])) #list { + :host(:not([not-responsive])) #popup { top: 40px !important; bottom: 40px !important; left: 40px !important; @@ -249,7 +249,7 @@ class TpDropdown extends BaseElement { -
+