Skip to content

Commit

Permalink
Merge branch 'main' into ebay-video-player-type
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwebdev authored Oct 17, 2023
2 parents a549ac0 + a2b1845 commit 0d25701
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ebay/ui-core-react",
"version": "5.4.1",
"version": "5.4.2",
"description": "Skin components build off React",
"publishConfig": {
"registry": "https://registry.npmjs.org"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ exports[`Storyshots ebay-listbox-button Floating label 1`] = `
>
Select
</span>
<span
className="btn__text"
>
-
</span>
<svg
aria-hidden={true}
className="icon icon--chevron-down-16"
Expand Down
8 changes: 3 additions & 5 deletions src/ebay-listbox-button/listbox-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,10 @@ const ListboxButton: FC<EbayListboxButtonProps> = ({
})
const expandBtnTextId = prefixId && 'expand-btn-text'

const buttonLabel = floatingLabel ? (
<span className="btn__floating-label">
{floatingLabel}
</span>
) : (

const buttonLabel = (
<>
{floatingLabel && <span className="btn__floating-label">{floatingLabel}</span>}
{prefixLabel && <span className="btn__label">{prefixLabel}</span>}
<span className="btn__text" id={expandBtnTextId}>
{selectedOption?.props.children || unselectedText}
Expand Down

0 comments on commit 0d25701

Please sign in to comment.