From 505b5ad51db171cf967c2a1c76f3a97a76b18b41 Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Fri, 4 May 2018 12:59:14 -0700 Subject: [PATCH] fix badge examples, fix combo box usage of badge --- src-docs/src/views/badge/badge_button.js | 2 ++ src/components/combo_box/combo_box_input/combo_box_pill.js | 1 + 2 files changed, 3 insertions(+) diff --git a/src-docs/src/views/badge/badge_button.js b/src-docs/src/views/badge/badge_button.js index 20d65b0908e2..0afe69c66742 100644 --- a/src-docs/src/views/badge/badge_button.js +++ b/src-docs/src/views/badge/badge_button.js @@ -9,6 +9,7 @@ export default () => ( window.alert('Badge clicked')} + onClickAriaLabel="Example of onclick event for the button" > onClick on badge itself @@ -18,6 +19,7 @@ export default () => ( iconSide="right" color="#333" iconOnClick={() => window.alert('Icon inside badge clicked')} + iconOnClickAriaLabel="Example of onclick event for icon within the button" > onClick on icon within badge diff --git a/src/components/combo_box/combo_box_input/combo_box_pill.js b/src/components/combo_box/combo_box_input/combo_box_pill.js index 8bdcec2fdc96..9ce28d5dca81 100644 --- a/src/components/combo_box/combo_box_input/combo_box_pill.js +++ b/src/components/combo_box/combo_box_input/combo_box_pill.js @@ -43,6 +43,7 @@ export class EuiComboBoxPill extends Component { className={classes} title={children} iconOnClick={this.onCloseButtonClick} + iconOnClickAriaLabel={`Remove ${children} from selection in this group`} iconType="cross" iconSide="right" color={color}