File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,12 @@ import SimpleDialog from "../../components/Dialog/SimpleDialog";
66import HtmlContentBlock from "../../components/Typography/HtmlContentBlock" ;
77
88interface 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 ;
Original file line number Diff line number Diff line change @@ -92,7 +92,12 @@ const defaultLayout: SilkActivityControlLayoutProps = {
9292} ;
9393
9494interface 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 ;
You can’t perform that action at this time.
0 commit comments