From e2b98b3dece04135934ddb7fedf830c07a6c97c7 Mon Sep 17 00:00:00 2001
From: Caroline Horn <549577+cchaos@users.noreply.github.com>
Date: Wed, 16 Jan 2019 15:01:54 -0500
Subject: [PATCH] Button group fixes (#1444)
---
CHANGELOG.md | 5 +-
src-docs/src/views/button/button_example.js | 7 ++
src-docs/src/views/button/button_group.js | 17 ++--
.../__snapshots__/button_group.test.js.snap | 12 +--
.../button/button_group/button_group.js | 83 +++++++++++--------
src/components/form/switch/_mixins.scss | 3 +-
src/global_styling/reset/_reset.scss | 4 +
7 files changed, 86 insertions(+), 45 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b91b44078b1..44e7729d4fe 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,9 @@
## [`master`](https://github.com/elastic/eui/tree/master)
-No public interface changes since `6.4.0`.
+**Bug fixes**
+
+- Added `legend` for accessibility of `EuiButtonGroup` and fixed opacity of disabled input ([#1444](https://github.com/elastic/eui/pull/1444))
+
## [`6.4.0`](https://github.com/elastic/eui/tree/v6.4.0)
diff --git a/src-docs/src/views/button/button_example.js b/src-docs/src/views/button/button_example.js
index c2d5f78374d..678c8bb9cd0 100644
--- a/src-docs/src/views/button/button_example.js
+++ b/src-docs/src/views/button/button_example.js
@@ -15,6 +15,7 @@ import {
EuiCode,
EuiButtonGroup,
EuiButtonToggle,
+ EuiCallOut,
} from '../../../../src/components';
import Button from './button';
@@ -251,6 +252,12 @@ export const ButtonExample = {
(default) or "primary". If your just displaying a group of
icons, add the prop isIconOnly.
+
+
+ In order for groups to be properly read as groups with a title, add the legend prop.
+ This is only for accessiblity, however, so it will be visibly hidden.
+