Skip to content

Commit

Permalink
fix: no div children in button
Browse files Browse the repository at this point in the history
  • Loading branch information
jschoedl committed Dec 21, 2024
1 parent 74729a3 commit fc9c9d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Accordions/AccordionBoxItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ export default function AccordionBoxItems({
className={`last:border-b-0 ${color} white:bg-white overflow-hidden shadow-md`}
hideIndicator={noSelectionMode}
title={
<div className="flex justify-between items-center w-full">
<div className="flex gap-4">
<span className="flex justify-between items-center w-full">
<span className="flex gap-4">
<Highlighter searchWords={highlightedTitleWords} textToHighlight={item.title} autoEscape />
{loading && <Spinner size="sm" />}
</div>
</span>
{item.tooltipInfo && (
<Tooltip text={item.tooltipInfo}>
{item.infoIcon && <span className="w-[37px] h-[37px] p-[5.5px]">{item.infoIcon}</span>}
Expand All @@ -89,7 +89,7 @@ export default function AccordionBoxItems({
{!item.tooltipInfo && !item.popoverInfo && item.infoIcon && (
<span className="w-[37px] h-[37px] p-[5.5px]">{item.infoIcon}</span>
)}
</div>
</span>
}
>
{item.description && <p className="text-sm text-balance pb-8 text-center">{item.description}</p>}
Expand Down

0 comments on commit fc9c9d1

Please sign in to comment.