Skip to content

Commit b6e4c3c

Browse files
committed
improve property description
1 parent 7d059ea commit b6e4c3c

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎src/cmem/ActivityControl/ActivityExecutionErrorReportModal.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ import SimpleDialog from "../../components/Dialog/SimpleDialog";
66
import HtmlContentBlock from "../../components/Typography/HtmlContentBlock";
77

88
interface ActivityExecutionErrorReportModalProps extends Pick<ModalProps, "aria-label" | "aria-labelledby"> {
9-
// Title of the modal
9+
/**
10+
* Title of the modal.
11+
* If set, it is used as the accessible name of the dialog via `aria-labelledby`
12+
* (unless `aria-labelledby` is given explicitly), so `aria-label` is ignored.
13+
* Use `aria-label` only for modals without title.
14+
*/
1015
title?: string;
1116
// Called when the close button is clicked
1217
onDiscard: () => any;

‎src/cmem/ActivityControl/SilkActivityControl.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ const defaultLayout: SilkActivityControlLayoutProps = {
9292
};
9393

9494
interface IErrorReportAction extends Pick<ModalProps, "aria-label" | "aria-labelledby"> {
95-
// The title of the error report modal
95+
/**
96+
* The title of the error report modal.
97+
* If set, it is used as the accessible name of the dialog via `aria-labelledby`
98+
* (unless `aria-labelledby` is given explicitly), so `aria-label` is ignored.
99+
* Use `aria-label` only for modals without title.
100+
*/
96101
title?: string;
97102
// The element that will be rendered in the modal, either as Markdown or object
98103
renderReport: (report: string | SilkActivityExecutionReportProps) => React.JSX.Element;

0 commit comments

Comments
 (0)