From 4dfb8000064ee9355ae801ed1d68737bc1d376e3 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 19 Dec 2024 15:19:32 +0100 Subject: [PATCH] Add part for default placeholder --- src/BetterSelect.css | 4 ++++ src/BetterSelect.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BetterSelect.css b/src/BetterSelect.css index 83e0cf0..7e8ae72 100644 --- a/src/BetterSelect.css +++ b/src/BetterSelect.css @@ -48,6 +48,10 @@ better-select { display: none; } + &::part(placeholder) { + min-height: 1.4em; + } + &.search::part(search) { display: block; } diff --git a/src/BetterSelect.js b/src/BetterSelect.js index 7ea9160..6606c2a 100644 --- a/src/BetterSelect.js +++ b/src/BetterSelect.js @@ -134,7 +134,7 @@ export class BetterSelect extends HTMLElement {