Skip to content

Commit 953068a

Browse files
committed
feat(ObjectPage): allow customizing role of footerArea container
1 parent 8e5320e commit 953068a

File tree

1 file changed

+8
-1
lines changed
  • packages/main/src/components/ObjectPage

1 file changed

+8
-1
lines changed

packages/main/src/components/ObjectPage/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ export interface ObjectPagePropTypes extends Omit<CommonProps, 'placeholder'> {
138138
objectPageAnchorBar?: {
139139
role?: string;
140140
};
141+
objectPageFooterArea?: {
142+
role?: string;
143+
};
141144
};
142145
/**
143146
* If set, only the specified placeholder will be displayed as content of the `ObjectPage`, no sections or sub-sections will be rendered.
@@ -887,7 +890,11 @@ const ObjectPage = forwardRef<ObjectPageDomRef, ObjectPagePropTypes>((props, ref
887890
<div className={classNames.footerSpacer} data-component-name="ObjectPageFooterSpacer" aria-hidden />
888891
)}
889892
{footerArea && (
890-
<footer className={classNames.footer} data-component-name="ObjectPageFooter">
893+
<footer
894+
role={accessibilityAttributes?.objectPageFooterArea?.role}
895+
className={classNames.footer}
896+
data-component-name="ObjectPageFooter"
897+
>
891898
{footerArea}
892899
</footer>
893900
)}

0 commit comments

Comments
 (0)