diff --git a/.changeset/dirty-flies-tan.md b/.changeset/dirty-flies-tan.md new file mode 100644 index 0000000000..bf85a5d264 --- /dev/null +++ b/.changeset/dirty-flies-tan.md @@ -0,0 +1,5 @@ +--- +"@marigold/components": patch +--- + +fix(Text): Only apply `elementType` when RAC Text component is used. diff --git a/packages/components/src/Text/Text.test.tsx b/packages/components/src/Text/Text.test.tsx index ef4dc027a0..72a0a2b8b5 100644 --- a/packages/components/src/Text/Text.test.tsx +++ b/packages/components/src/Text/Text.test.tsx @@ -94,7 +94,6 @@ test('get theme color', () => {
`); diff --git a/packages/components/src/Text/Text.tsx b/packages/components/src/Text/Text.tsx index 9f07e28f29..a8c4909eac 100644 --- a/packages/components/src/Text/Text.tsx +++ b/packages/components/src/Text/Text.tsx @@ -74,7 +74,7 @@ const _Text = ({ return (