From 73ef26be2a5f823855435f9daa343b64936b9e60 Mon Sep 17 00:00:00 2001 From: Andy Brown Date: Fri, 8 May 2020 10:48:24 -0700 Subject: [PATCH] Revert "a11y: add ARIA landmarks for navigation regions (#2929)" This reverts commit e646d6f66dd11d261b3bfdd1bdb00965e2aec157. --- .../client/src/pages/design/index.tsx | 58 ++++------ .../packages/client/src/pages/home/index.tsx | 103 ++++++++---------- .../src/pages/language-generation/index.tsx | 10 +- .../pages/language-understanding/index.tsx | 10 +- .../pages/notifications/NotificationList.tsx | 6 +- .../client/src/pages/publish/index.tsx | 10 +- .../client/src/pages/setting/index.tsx | 14 +-- .../client/src/pages/skills/index.tsx | 10 +- 8 files changed, 89 insertions(+), 132 deletions(-) diff --git a/Composer/packages/client/src/pages/design/index.tsx b/Composer/packages/client/src/pages/design/index.tsx index b342bc9346..c505edc6d1 100644 --- a/Composer/packages/client/src/pages/design/index.tsx +++ b/Composer/packages/client/src/pages/design/index.tsx @@ -300,11 +300,7 @@ const DesignPage: React.FC +
-
- -
+
-
- setExportSkillModalVisible(true)} - /> -
+ setExportSkillModalVisible(true)} + />
-
+
{breadcrumbItems} {dialogJsonVisible ? ( )}
-
- -
+
diff --git a/Composer/packages/client/src/pages/home/index.tsx b/Composer/packages/client/src/pages/home/index.tsx index 224a5b81dd..763c6d8cfd 100644 --- a/Composer/packages/client/src/pages/home/index.tsx +++ b/Composer/packages/client/src/pages/home/index.tsx @@ -18,7 +18,6 @@ import * as home from './styles'; import { ItemContainer } from './ItemContainer'; import { RecentBotList } from './RecentBotList'; import { ExampleList } from './ExampleList'; - const linksButtom = [ { to: 'https://aka.ms/BF-Composer-Getting-Started', @@ -38,7 +37,7 @@ const comingSoonLink = { css: home.bluetitle, }; -const tutorials = [ +const turtorials = [ { title: formatMessage('Tutorial #1'), content: formatMessage('Coming soon...'), @@ -136,19 +135,17 @@ const Home: React.FC = () => { return (
-
- -
-
+ +

{formatMessage(`Bot Framework Composer`)}

-
+
{formatMessage( 'Bot Framework Composer is an integrated development environment (IDE) for building bots and other types of conversational software with the Microsoft Bot Framework technology stack' )}
-
+
= () => { />
{recentProjects.length > 0 ? ( -
- { - await onClickRecentBotProject(recentProjects[0].path); - }} - forwardedRef={addRef} - /> -
+ { + await onClickRecentBotProject(recentProjects[0].path); + }} + forwardedRef={addRef} + /> ) : ( -
- { - onClickTemplate('ToDoBotWithLuisSample'); - }} - forwardedRef={addRef} - /> -
+ { + onClickTemplate('ToDoBotWithLuisSample'); + }} + forwardedRef={addRef} + /> )}
{recentProjects.length > 0 && ( -
+

{formatMessage(`Recent Bots`)}

= () => { />
)} -
+

{formatMessage('Video tutorials:')}  @@ -206,34 +199,34 @@ const Home: React.FC = () => {

- {tutorials.map((item, index) => ( + {turtorials.map((item, index) => ( ))} -
-
-
-
- {formatMessage( - 'Bot Framework provides the most comprehensive experience for building conversation applications.' - )} - {linksButtom.map(link => { - return ( - -
{link.text}
- - ); - })} +
+
+ {formatMessage( + 'Bot Framework provides the most comprehensive experience for building conversation applications.' + )} +
+ {linksButtom.map(link => { + return ( + +
{link.text}
+ + ); + })} +
-
+

{formatMessage(`Examples`)}

{formatMessage( diff --git a/Composer/packages/client/src/pages/language-generation/index.tsx b/Composer/packages/client/src/pages/language-generation/index.tsx index 92d40c2d24..34fda0a282 100644 --- a/Composer/packages/client/src/pages/language-generation/index.tsx +++ b/Composer/packages/client/src/pages/language-generation/index.tsx @@ -101,9 +101,7 @@ const LGPage: React.FC = props => {

-
- -
+

{formatMessage('Bot Responses')}

@@ -120,10 +118,8 @@ const LGPage: React.FC = props => {
-
- -
-
+ +
}> diff --git a/Composer/packages/client/src/pages/language-understanding/index.tsx b/Composer/packages/client/src/pages/language-understanding/index.tsx index f595795eee..652899e5be 100644 --- a/Composer/packages/client/src/pages/language-understanding/index.tsx +++ b/Composer/packages/client/src/pages/language-understanding/index.tsx @@ -101,9 +101,7 @@ const LUPage: React.FC = props => { return (
-
- -
+

{formatMessage('User Input')}

@@ -121,10 +119,8 @@ const LUPage: React.FC = props => {
-
- -
-
+ +
}> diff --git a/Composer/packages/client/src/pages/notifications/NotificationList.tsx b/Composer/packages/client/src/pages/notifications/NotificationList.tsx index 8941643c35..6179b15bd5 100644 --- a/Composer/packages/client/src/pages/notifications/NotificationList.tsx +++ b/Composer/packages/client/src/pages/notifications/NotificationList.tsx @@ -143,7 +143,7 @@ export const NotificationList: React.FC = props => { return (
-
+
= props => { />
-
- -
+
); }; diff --git a/Composer/packages/client/src/pages/publish/index.tsx b/Composer/packages/client/src/pages/publish/index.tsx index a47f2317ee..9ab9bfdced 100644 --- a/Composer/packages/client/src/pages/publish/index.tsx +++ b/Composer/packages/client/src/pages/publish/index.tsx @@ -398,14 +398,12 @@ const Publish: React.FC = props => { setPublishDialogHidden(true)} onSubmit={publish} target={selectedTarget} /> )} {showLog && setShowLog(false)} />} -
- -
+

{selectedTarget ? selectedTargetName : formatMessage('Publish Profiles')}

-
+
{ @@ -420,7 +418,7 @@ const Publish: React.FC = props => { > {formatMessage('All profiles')}
- {settings?.publishTargets && ( + {settings && settings.publishTargets && ( { @@ -433,7 +431,7 @@ const Publish: React.FC = props => { /> )}
-
+
> = props => { return ( -
- -
+ -
+
-
- - - -
+ + + diff --git a/Composer/packages/client/src/pages/skills/index.tsx b/Composer/packages/client/src/pages/skills/index.tsx index c65f9dd557..913934d40a 100644 --- a/Composer/packages/client/src/pages/skills/index.tsx +++ b/Composer/packages/client/src/pages/skills/index.tsx @@ -62,13 +62,11 @@ const Skills: React.FC = () => { return (
-
- -
+

{formatMessage('Skills')}

-
+
= () => { skillHostEndpoint={settings.skillHostEndpoint as string | undefined} />
-
- setEditIndex(idx)} /> -
+ setEditIndex(idx)} />