From 90c521494d15158fc9877c96be6c3ee104d9ff01 Mon Sep 17 00:00:00 2001 From: Guilherme Nascimento Date: Sun, 15 Oct 2023 17:18:26 -0300 Subject: [PATCH] fix: label text overlap for selected option --- .../__tests__/__snapshots__/index.spec.tsx.snap | 5 +++++ src/ebay-listbox-button/listbox-button.tsx | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/ebay-listbox-button/__tests__/__snapshots__/index.spec.tsx.snap b/src/ebay-listbox-button/__tests__/__snapshots__/index.spec.tsx.snap index 05c4c229..9df521ef 100644 --- a/src/ebay-listbox-button/__tests__/__snapshots__/index.spec.tsx.snap +++ b/src/ebay-listbox-button/__tests__/__snapshots__/index.spec.tsx.snap @@ -288,6 +288,11 @@ exports[`Storyshots ebay-listbox-button Floating label 1`] = ` > Select + + - + = ({ }) const expandBtnTextId = prefixId && 'expand-btn-text' - const buttonLabel = floatingLabel ? ( - - {floatingLabel} - - ) : ( + + const buttonLabel = ( <> + {floatingLabel && {floatingLabel}} {prefixLabel && {prefixLabel}} {selectedOption?.props.children || unselectedText}