From eed458010cd1dc4c8bf2a565203650c645c44e08 Mon Sep 17 00:00:00 2001 From: Manuel Date: Wed, 20 Dec 2023 11:19:22 +0100 Subject: [PATCH] fix(components): style open state --- .../form-field/listbox/listbox-button-text-value.tsx | 6 +++++- src/components/form-field/listbox/listbox-button.tsx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/form-field/listbox/listbox-button-text-value.tsx b/src/components/form-field/listbox/listbox-button-text-value.tsx index a0be735a..7bab662f 100644 --- a/src/components/form-field/listbox/listbox-button-text-value.tsx +++ b/src/components/form-field/listbox/listbox-button-text-value.tsx @@ -7,7 +7,11 @@ export interface ListboxButtonTextValueProps { export const ListboxButtonTextValue = ({ placeholder, value }: ListboxButtonTextValueProps) => { if (!value) { - return
{placeholder}
; + return ( +
+ {placeholder} +
+ ); } return
{value}
; }; diff --git a/src/components/form-field/listbox/listbox-button.tsx b/src/components/form-field/listbox/listbox-button.tsx index 392292c2..c382af09 100644 --- a/src/components/form-field/listbox/listbox-button.tsx +++ b/src/components/form-field/listbox/listbox-button.tsx @@ -10,7 +10,7 @@ export interface ListboxButtonProps { const ListboxButton = ({ children }: ListboxButtonProps) => { return ( - + {children}