Skip to content

Commit

Permalink
[FX-5973] Update tag to span (#4567)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasSlama authored Sep 20, 2024
1 parent d5027ed commit 5287366
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/eighty-eagles-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@toptal/picasso-tag': patch
'@toptal/picasso': patch
---

- update HTML tag of Tag.Rectangular to span
1 change: 1 addition & 0 deletions packages/base/Tag/src/TagRectangular/TagRectangular.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const TagRectangular = forwardRef<HTMLDivElement, Props>(
variant === 'light-grey' ? 'text-graphite-800' : 'text-white'
)}
titleCase={titleCase}
as='span'
>
{children}
</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ exports[`TagRectangular renders rectangular Tag 1`] = `
<div
class="text-lg transition-none rounded-sm font-semibold h-4 inline-flex content-center justify-center align-middle bg-gray"
>
<p
<span
class="m-0 text-2xs font-semibold whitespace-nowrap overflow-ellipsis overflow-hidden mx-1 w-max text-graphite"
>
Reactangular Tag
</p>
</span>
</div>
</div>
</div>
Expand Down

0 comments on commit 5287366

Please sign in to comment.