From de9337edde83ae3e9f232c0e04826ea7f1a54522 Mon Sep 17 00:00:00 2001 From: Sean Lip Date: Wed, 5 Oct 2016 18:21:41 -0700 Subject: [PATCH] Add general functionality to support reading a message after a custom button is pressed. --- accessible/README | 2 ++ accessible/field-segment.component.js | 19 +++++++++++++------ accessible/media/accessible.css | 4 ++++ accessible/workspace.component.js | 15 ++++++++++++--- 4 files changed, 31 insertions(+), 9 deletions(-) diff --git a/accessible/README b/accessible/README index 42bf1c4fa..661b3a105 100644 --- a/accessible/README +++ b/accessible/README @@ -46,6 +46,8 @@ 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) diff --git a/accessible/field-segment.component.js b/accessible/field-segment.component.js index 86c649b0c..acb765363 100644 --- a/accessible/field-segment.component.js +++ b/accessible/field-segment.component.js @@ -56,7 +56,8 @@ blocklyApp.FieldSegmentComponent = ng.core
  1. + [attr.aria-level]="level" [attr.aria-selected]="mainField.getValue() == optionValue" + class="blocklyDropdownListItem">