Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions Composer/packages/client/src/components/MainContent.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ const AddLanguageModal: React.FC<IAddLanguageModalProps> = (props) => {
}, [currentLanguages]);

const searchBoxLabelId = useId('search-box-label');
const searchBoxId = useId('search-box');
const translationsLabelId = useId('translations-label');

const onSearch = (_e, newValue) => {
Expand Down Expand Up @@ -196,10 +197,13 @@ const AddLanguageModal: React.FC<IAddLanguageModalProps> = (props) => {
)}
/>
</div>
<Label id={searchBoxLabelId}>{MultiLanguagesDialog.ADD_DIALOG.selectionTitle}</Label>
<Label htmlFor={searchBoxId} id={searchBoxLabelId}>
{MultiLanguagesDialog.ADD_DIALOG.selectionTitle}
</Label>
<SearchBox
disableAnimation
aria-labelledBy={searchBoxLabelId}
id={searchBoxId}
placeholder={MultiLanguagesDialog.ADD_DIALOG.searchPlaceHolder}
styles={{ root: { width: 300 } }}
onChange={onSearch}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ interface PluginHostProps {
pluginType: PluginType;
bundleId: string;
projectId: string;
role?: string;
}

/** Binds closures around Composer client code to plugin iframe's window object */
Expand Down Expand Up @@ -136,7 +137,7 @@ export const PluginHost: React.FC<PluginHostProps> = (props) => {
}, [shell]);

return (
<div css={containerStyles}>
<div css={containerStyles} role={props.role}>
<iframe
key={`${pluginName}.${bundleId}.${pluginType}`}
ref={targetRef}
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/client/src/pages/design/DesignPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const DesignPage: React.FC<RouteComponentProps<{ dialogId: string; projectId: st
</div>
</div>

<div css={contentWrapper} role="main">
<div css={contentWrapper}>
<CommandBar projectId={activeBot} />
<Conversation css={splitPaneContainer}>
<div css={splitPaneWrapper}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const PluginPageContainer: React.FC<RouteComponentProps<{ pluginId: string; bund
return null;
}

return <PluginHost bundleId={bundleId} pluginName={pluginId} pluginType="page" projectId={projectId} />;
return <PluginHost bundleId={bundleId} pluginName={pluginId} pluginType="page" projectId={projectId} role="main" />;
};

export { PluginPageContainer };