diff --git a/CHANGELOG.md b/CHANGELOG.md index 90fc110565c..f3464bc7193 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,9 @@ **Bug fixes** -- Fixed `EuiToolTip` bug which caused the tooltip to hide when moving the mouse around inside of the trigger element ([#557](https://github.com/elastic/eui/pull/557)) +- Fixed `EuiToolTip` bug which caused the tooltip to hide when moving the mouse around inside of the trigger element ([#557](https://github.com/elastic/eui/pull/557), [#564](https://github.com/elastic/eui/pull/564)) - Added a `buttonColor` prop to `EuiConfirmModal` ([#546](https://github.com/elastic/eui/pull/546)) -- Added ‘baseline’ as option to `EuiFlexGroup`'s `alignItems` prop ([#546](https://github.com/elastic/eui/pull/546)) +- Added 'baseline' as option to `EuiFlexGroup`'s `alignItems` prop ([#546](https://github.com/elastic/eui/pull/546)) - Fixed a bug where `EuiButtonEmpty` would offer a white background on hover when it was disabled, even when there was no such background transition on hover when the buttons are not disabled ([#561](https://github.com/elastic/eui/pull/561)) # [`0.0.33`](https://github.com/elastic/eui/tree/v0.0.33) diff --git a/src-docs/src/views/filter_group/filter_group_example.js b/src-docs/src/views/filter_group/filter_group_example.js index 0ed02c74fc9..c9593f0d234 100644 --- a/src-docs/src/views/filter_group/filter_group_example.js +++ b/src-docs/src/views/filter_group/filter_group_example.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { Fragment } from 'react'; import { renderToHtml } from '../../services'; @@ -22,7 +22,7 @@ const filterGroupHtml = renderToHtml(FilterGroup); export const FilterGroupExample = { title: 'Filter Group', intro: ( -
+ -
+ ), sections: [{ source: [{ diff --git a/src-docs/src/views/flex/flex_example.js b/src-docs/src/views/flex/flex_example.js index 55fb0f587d7..4ef788352ff 100644 --- a/src-docs/src/views/flex/flex_example.js +++ b/src-docs/src/views/flex/flex_example.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { Fragment } from 'react'; import { renderToHtml } from '../../services'; @@ -72,7 +72,7 @@ const flexGroupResonsiveHtml = renderToHtml(FlexGroupResponsive); export const FlexExample = { title: 'Flex', intro: ( -
+ -
+ ), sections: [{ title: 'FlexGroup is for a single row layout', diff --git a/src-docs/src/views/spacer/spacer_example.js b/src-docs/src/views/spacer/spacer_example.js index 5ea4a6fb689..7793716d242 100644 --- a/src-docs/src/views/spacer/spacer_example.js +++ b/src-docs/src/views/spacer/spacer_example.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { Fragment } from 'react'; import { renderToHtml } from '../../services'; @@ -20,7 +20,7 @@ const spacerHtml = renderToHtml(Spacer); export const SpacerExample = { title: 'Spacer', intro: ( -
+ -
+ ), sections: [{ source: [{ diff --git a/src-docs/src/views/tool_tip/tool_tip.js b/src-docs/src/views/tool_tip/tool_tip.js index d82979cf137..58f4fbff504 100644 --- a/src-docs/src/views/tool_tip/tool_tip.js +++ b/src-docs/src/views/tool_tip/tool_tip.js @@ -15,7 +15,10 @@ export default () => (

This tooltip appears on the{' '} - + top

@@ -34,14 +37,20 @@ export default () => (

This tooltip appears on the{' '} - + right

This tooltip appears on the bottom of this icon:{' '} - +

diff --git a/src-docs/src/views/tool_tip/tool_tip_example.js b/src-docs/src/views/tool_tip/tool_tip_example.js index 82db91b9dcd..e804f803ddb 100644 --- a/src-docs/src/views/tool_tip/tool_tip_example.js +++ b/src-docs/src/views/tool_tip/tool_tip_example.js @@ -7,9 +7,11 @@ import { } from '../../components'; import { + EuiCallOut, EuiCode, EuiToolTip, EuiIconTip, + EuiSpacer, } from '../../../../src/components'; import ToolTip from './tool_tip'; @@ -22,6 +24,20 @@ const infoTipHtml = renderToHtml(IconTip); export const ToolTipExample = { title: 'ToolTip', + intro: ( + + +

+ EuiToolTip wraps its children in a span element, so if you pass in a block-level child + (e.g. a div) the resulting DOM will be in violation of the HTML5 spec. +

+
+ + +
+ ), sections: [{ source: [{ type: GuideSectionTypes.JS, diff --git a/src/components/tool_tip/__snapshots__/icon_tip.test.js.snap b/src/components/tool_tip/__snapshots__/icon_tip.test.js.snap index acd4d41f6ac..4567c32c117 100644 --- a/src/components/tool_tip/__snapshots__/icon_tip.test.js.snap +++ b/src/components/tool_tip/__snapshots__/icon_tip.test.js.snap @@ -1,7 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`EuiIconTip is rendered 1`] = ` - + + +