)}
[]): Record {
};
if (style) {
- props.style = props.style ? { ...(props.style || {}), ...(style || {}) } : style;
+ props.style = props.style ? { ...props.style, ...style } : style;
}
if (className) {
diff --git a/packages/main/src/components/AnalyticalTable/types/index.ts b/packages/main/src/components/AnalyticalTable/types/index.ts
index a15a0e0d32c..d644f64abde 100644
--- a/packages/main/src/components/AnalyticalTable/types/index.ts
+++ b/packages/main/src/components/AnalyticalTable/types/index.ts
@@ -766,9 +766,21 @@ export interface AnalyticalTablePropTypes extends Omit {
/**
* Component or text rendered in the header section of the `AnalyticalTable`.
*
- * __Note:__ If not set, it will be hidden.
+ * __Note:__ If not set, the header section is not rendered. When set, its text is automatically used as the table's accessible name. To provide a different accessible name, use `accessibleName` or `accessibleNameRef` instead.
*/
header?: ReactNode;
+ /**
+ * Defines the accessible name of the table.
+ *
+ * __Note:__ If set, the `aria-labelledby` derived from the `header` prop will not be applied to the table grid.
+ */
+ accessibleName?: string;
+ /**
+ * Defines the IDs of the elements that label the table.
+ *
+ * __Note:__ If set, the `aria-labelledby` derived from the `header` prop will not be applied to the table grid.
+ */
+ accessibleNameRef?: string;
/**
* Extension section of the Table. If not set, no extension area will be rendered
*/