diff --git a/accessible/README.md b/accessible/README.md index f560761c5..a69fa6667 100644 --- a/accessible/README.md +++ b/accessible/README.md @@ -21,8 +21,8 @@ in the same order as in the demo: utils.service.js will need to be the first Angular file imported. When the DOMContentLoaded event fires, call ng.platform.browser.bootstrap() on -the main component to be loaded. This will usually be blocklyApp.AppView, but -if you have another component that wraps it, use that one instead. +the main component to be loaded. This will usually be blocklyApp.AppComponent, +but if you have another component that wraps it, use that one instead. Customizing the Sidebar and Audio @@ -41,16 +41,11 @@ The value of mediaPathPrefix should be the location of the accessible/media folder. The value of 'customSidebarButtons' should be a list of objects, each -representing buttons on the sidebar. Each of these objects should have five -keys: - +representing buttons on the sidebar. Each of these objects should have the +following keys: - 'text' (the text to display on the button) - - 'ariaDescribedBy' (the value of the button's aria-describedby attribute) - - 'onClickNotification' (a notification that the screenreader should read - when the button is clicked) - - 'isHidden' (a function that returns true if the button should not be - displayed, and false otherwise) - 'action' (the function that gets run when the button is clicked) + - 'id' (optional; the id of the button) Limitations diff --git a/accessible/app.component.js b/accessible/app.component.js index fd25c5d8f..370599c29 100644 --- a/accessible/app.component.js +++ b/accessible/app.component.js @@ -24,7 +24,7 @@ blocklyApp.workspace = new Blockly.Workspace(); -blocklyApp.AppView = ng.core.Component({ +blocklyApp.AppComponent = ng.core.Component({ selector: 'blockly-app', template: `