Skip to content

Commit

Permalink
Merge pull request #843 from takenet/bugfix/list-item
Browse files Browse the repository at this point in the history
fix(list-item): problems spaces extra iside component
  • Loading branch information
lucasMurtaVI authored Jun 5, 2024
2 parents 70ce1ee + 6a9016c commit ceb3710
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions src/components/list/list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,23 +246,25 @@ export class ListItem {
<div class={{ [`content-slot`]: true }}>
<slot></slot>
</div>
<div
class={{
[`content-item`]: true,
[`grow-up`]: !this.hasActionAreaSlot && !this.hasContentAreaSlot && this.internalChips.length < 0,
}}
>
{this.text && (
<bds-typo class="title-item" variant="fs-16" tag="span" bold={this.active ? 'bold' : 'regular'}>
{this.text}
</bds-typo>
)}
{this.secondaryText && (
<bds-typo class="subtitle-item" variant="fs-12" line-height="small" tag="span">
{this.secondaryText}
</bds-typo>
)}
</div>
{(this.text || this.secondaryText) && (
<div
class={{
[`content-item`]: true,
[`grow-up`]: !this.hasActionAreaSlot && !this.hasContentAreaSlot && this.internalChips.length < 0,
}}
>
{this.text && (
<bds-typo class="title-item" variant="fs-16" tag="span" bold={this.active ? 'bold' : 'regular'}>
{this.text}
</bds-typo>
)}
{this.secondaryText && (
<bds-typo class="subtitle-item" variant="fs-12" line-height="small" tag="span">
{this.secondaryText}
</bds-typo>
)}
</div>
)}
<div class={{ [`content-area`]: true, [`grow-up`]: true }}>
{this.internalChips.length > 0 && <div class="internal-chips">{this.renderChips()}</div>}
<slot name="content-area"></slot>
Expand Down

0 comments on commit ceb3710

Please sign in to comment.