We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
id
1 parent cd4577a commit ea26158Copy full SHA for ea26158
.changeset/calm-buses-sniff.md
@@ -0,0 +1,5 @@
1
+---
2
+'@shopify/polaris': patch
3
4
+
5
+Fixed how optional `id` prop rendered in `Text`
polaris-react/src/components/Text/Text.tsx
@@ -85,7 +85,7 @@ export const Text = ({
85
);
86
87
return (
88
- <Component className={className} {...(id ? id : null)}>
+ <Component className={className} {...(id && {id})}>
89
{children}
90
</Component>
91
0 commit comments