diff --git a/.changeset/funny-ravens-act.md b/.changeset/funny-ravens-act.md new file mode 100644 index 00000000000..9bb403851e7 --- /dev/null +++ b/.changeset/funny-ravens-act.md @@ -0,0 +1,5 @@ +--- +'@shopify/polaris': patch +--- + +[IndexTable] Unify sticky table header rendering with regular header for consistency. diff --git a/polaris-react/src/components/IndexTable/IndexTable.tsx b/polaris-react/src/components/IndexTable/IndexTable.tsx index f7422ae20f8..50ae57f163f 100644 --- a/polaris-react/src/components/IndexTable/IndexTable.tsx +++ b/polaris-react/src/components/IndexTable/IndexTable.tsx @@ -869,7 +869,7 @@ function IndexTableBase({ Tag: React.ElementType, tagProps: {[x: string]: unknown}, ) { - return (heading: IndexTableHeading, index: number) => { + return function Heading(heading: IndexTableHeading, index: number) { const isSecond = index === 0; const isLast = index === headings.length - 1; const hasSortable = sortable?.some((value) => value === true);