From aa7fa9e7009d2aa739855cc43b421d5d2c4298ac Mon Sep 17 00:00:00 2001 From: Ugo Stephant Date: Mon, 28 Nov 2022 14:34:03 +0100 Subject: [PATCH] fix(theme): allow selectfield to not be searchable --- packages/theme/lib/SelectField.sass | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/theme/lib/SelectField.sass b/packages/theme/lib/SelectField.sass index 6df51aa32..fdab274e6 100644 --- a/packages/theme/lib/SelectField.sass +++ b/packages/theme/lib/SelectField.sass @@ -13,7 +13,7 @@ opacity: .5 .field - &, & .icon.remove, & .icons .icon.remove + &, & input, & .icon.remove, & .icons .icon.remove cursor: default &:focus-within, @@ -39,6 +39,13 @@ .field padding: 10px 50px 10px 10px + &.searchable.empty + .field + cursor: text + + input + cursor: text + .field display: flex border-radius: 4px @@ -49,7 +56,7 @@ flex-wrap: wrap gap: 10px width: 100% - cursor: text + cursor: default input border: none @@ -57,6 +64,7 @@ display: block background: transparent padding: 0 + cursor: default &::placeholder color: var(--placeholder-color)