From 28d110dedd6d6b12d8faf978ce52a198734cd5d9 Mon Sep 17 00:00:00 2001 From: cchaos Date: Fri, 4 May 2018 16:29:24 -0400 Subject: [PATCH 1/2] =?UTF-8?q?Ensuring=20switches=E2=80=99=20inputs=20it'?= =?UTF-8?q?s=20still=20hidden=20when=20[disabled].?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/form/switch/_switch.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/form/switch/_switch.scss b/src/components/form/switch/_switch.scss index d22070a161b..2fd3a978684 100644 --- a/src/components/form/switch/_switch.scss +++ b/src/components/form/switch/_switch.scss @@ -12,8 +12,10 @@ /** * 1. The input is "hidden" but still focusable. + * 2. Make sure it's still hidden when [disabled]. */ - .euiSwitch__input { + .euiSwitch__input, + .euiSwitch__input[disabled] /* 2 */ { position: absolute; opacity: 0; /* 1 */ width: 100%; From 3312acfdc652d3351de44f369d84a26be09b7da9 Mon Sep 17 00:00:00 2001 From: cchaos Date: Fri, 4 May 2018 16:37:11 -0400 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e893da5bab..01fa790548a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## [`master`](https://github.com/elastic/eui/tree/master) -No public interface changes since `0.0.46`. +**Bug fixes** + +- Ensuring switches’ inputs are still hidden when `[disabled]` ([#778](https://github.com/elastic/eui/pull/778)) ## [`0.0.46`](https://github.com/elastic/eui/tree/v0.0.46)