Skip to content

Commit

Permalink
feat(rich-tooltip): add tag button instead tag p
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielduete committed Feb 13, 2025
1 parent 68cc23d commit f3b1717
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/components/rich-tooltip/rich-tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
}

.action {
background: none;
border: none;
color: var(--color-brand-secondary-regular);
cursor: pointer;
font: var(--button-medium);
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/components/rich-tooltip/rich-tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export class AtomRichTooltip {
<slot />
</p>
{this.action === 'click' && this.actionText && (
<p class='action' onClick={() => this.buttonAction.emit()}>
<button class='action' onClick={() => this.buttonAction.emit()}>
{this.actionText}
</p>
</button>
)}
</div>
</atom-tooltip>
Expand Down

0 comments on commit f3b1717

Please sign in to comment.