From 876e1cbb9320a3c064dfb6f8c64f15dc80e99ea5 Mon Sep 17 00:00:00 2001 From: Chandler Date: Tue, 2 Oct 2018 13:28:26 -0600 Subject: [PATCH] Disable pointer-events on all disabled descendents of tooltips (#1222) * Disable pointer-events on all disabled descendents of tooltips * changelog --- CHANGELOG.md | 4 +++- src/components/tool_tip/_tool_tip.scss | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb89ca8b2e1..135559581be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## [`master`](https://github.com/elastic/eui/tree/master) -No public interface changes since `4.3.0`. +**Bug fixes** + +- Fix EuiToolTip to show tooltips on disabled elements ([#1222](https://github.com/elastic/eui/pull/1222)) ## [`4.3.0`](https://github.com/elastic/eui/tree/v4.3.0) diff --git a/src/components/tool_tip/_tool_tip.scss b/src/components/tool_tip/_tool_tip.scss index 3d882c51fc4..7d526792d44 100644 --- a/src/components/tool_tip/_tool_tip.scss +++ b/src/components/tool_tip/_tool_tip.scss @@ -78,7 +78,7 @@ // wouldn't trigger the onMouseOut and hide the tooltip; disabling pointer events // on disabled elements means any mouse events remain handled by parent elements // https://jakearchibald.com/2017/events-and-disabled-form-fields/ - > *[disabled] { + *[disabled] { pointer-events: none; } }