Skip to content

Commit

Permalink
fix: forward Detail id prop when as prop is not defined (#2866)
Browse files Browse the repository at this point in the history
  • Loading branch information
ragafus authored Jul 26, 2024
1 parent de77fa9 commit aae591e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-gorillas-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-uikit/text': patch
---

`Detail` forwards `id` prop to its underlying element when `as` prop is not defined
1 change: 1 addition & 0 deletions packages/components/text/src/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ const Detail = (props: TDetailProps) => {

return (
<div
id={props.id}
css={detailStyles(props)}
title={props.title}
aria-labelledby={props['aria-labelledby']}
Expand Down

0 comments on commit aae591e

Please sign in to comment.