diff --git a/src-docs/src/components/guide_theme_selector/guide_theme_selector.tsx b/src-docs/src/components/guide_theme_selector/guide_theme_selector.tsx index 1a9b86a1de2..c3fee11f1ab 100644 --- a/src-docs/src/components/guide_theme_selector/guide_theme_selector.tsx +++ b/src-docs/src/components/guide_theme_selector/guide_theme_selector.tsx @@ -1,7 +1,10 @@ /* eslint-disable no-restricted-globals */ import React, { useState } from 'react'; -import { useIsWithinBreakpoints } from '../../../../src/services'; +import { + EuiThemeProvider, + useIsWithinBreakpoints, +} from '../../../../src/services'; import { EUI_THEME, EUI_THEMES } from '../../../../src/themes'; import { ThemeContext } from '../with_theme'; @@ -84,16 +87,18 @@ const GuideThemeSelectorComponent: React.FunctionComponent< }); const button = ( - - {isMobileSize ? 'Theme' : currentTheme.text} - + + + {isMobileSize ? 'Theme' : currentTheme.text} + + ); return ( diff --git a/src-docs/src/views/bottom_bar/bottom_bar_position.js b/src-docs/src/views/bottom_bar/bottom_bar_position.js index 6a96c946440..66855b9c044 100644 --- a/src-docs/src/views/bottom_bar/bottom_bar_position.js +++ b/src-docs/src/views/bottom_bar/bottom_bar_position.js @@ -1,25 +1,23 @@ import React from 'react'; -import { EuiBottomBar, EuiSpacer, EuiText } from '../../../../src/components'; +import { EuiBottomBar, EuiText } from '../../../../src/components'; export default () => { return ( - <> +

- When scrolling past this example block, the{' '} - EuiBottomBar will stick to the bottom of the browser - window (with a 10px offset), but keeps it within the bounds of its - parent. + When scrolling within this example, the EuiBottomBar{' '} + will stick to the bottom of scrollable container (with a 10px offset), + but will not scroll with the page itself.

- - +
- +

Scroll to see!

- +
); }; diff --git a/src-docs/src/views/button/button_example.js b/src-docs/src/views/button/button_example.js index 56ddcfa7840..196852c5ecc 100644 --- a/src-docs/src/views/button/button_example.js +++ b/src-docs/src/views/button/button_example.js @@ -101,12 +101,6 @@ const splitButtonSnippet = [ `, ]; -import ButtonGhost from './button_ghost'; -const buttonGhostSource = require('!!raw-loader!./button_ghost'); -const buttonGhostSnippet = ` - -`; - import ButtonAsLink from './button_as_link'; const buttonAsLinkSource = require('!!raw-loader!./button_as_link'); const buttonAsLinkSnippet = ` @@ -703,35 +697,6 @@ export const ButtonExample = { props: { EuiButtonGroup, EuiButtonGroupOptionProps }, demoPanelProps: { color: 'subdued' }, }, - { - title: 'Ghost vs. dark mode', - source: [ - { - type: GuideSectionTypes.JS, - code: buttonGhostSource, - }, - ], - text: ( -

- For buttons on dark color backgrounds, it is recommended to wrap the - entire area in{' '} - - {''} - {' '} - to invert all colors to dark mode. The legacy{' '} - {'color="ghost"'} now uses this - method and is set for deprecation. An example usage of inverted - buttons is in combination with{' '} - - EuiBottomBar - {' '} - which already wraps its children in dark mode. -

- ), - snippet: buttonGhostSnippet, - demo: , - demoPanelProps: { paddingSize: 'none' }, - }, ], guidelines: , }; diff --git a/src-docs/src/views/button/button_ghost.js b/src-docs/src/views/button/button_ghost.js deleted file mode 100644 index eede6912d39..00000000000 --- a/src-docs/src/views/button/button_ghost.js +++ /dev/null @@ -1,84 +0,0 @@ -import React, { useState } from 'react'; - -import { - EuiButton, - EuiButtonEmpty, - EuiButtonIcon, - EuiFlexGroup, - EuiFlexItem, - EuiPanel, -} from '../../../../src/components'; -import { EuiThemeProvider } from '../../../../src/services'; - -export default () => { - const [toggle0On, setToggle0On] = useState(false); - - const onToggle0Change = () => { - setToggle0On((isOn) => !isOn); - }; - - return ( - - - - - {}}> - Ghost - - - - - {}} - > - Filled - - - - - {}}> - small - - - - - {}} - aria-label="Your account" - /> - - - - - Loading… - - - - - - Loading… - - - - - - Toggle me - - - - - - ); -}; diff --git a/src-docs/src/views/page_template/_page_demo.tsx b/src-docs/src/views/page_template/_page_demo.tsx index f2f94bc6f9f..e2267136592 100644 --- a/src-docs/src/views/page_template/_page_demo.tsx +++ b/src-docs/src/views/page_template/_page_demo.tsx @@ -148,7 +148,7 @@ export const PageDemo: FunctionComponent< - Share + Share ) : undefined; diff --git a/src/components/button/__snapshots__/button.test.tsx.snap b/src/components/button/__snapshots__/button.test.tsx.snap index e5a199790ef..5a20f9ae36d 100644 --- a/src/components/button/__snapshots__/button.test.tsx.snap +++ b/src/components/button/__snapshots__/button.test.tsx.snap @@ -41,17 +41,6 @@ exports[`EuiButton props color danger is rendered 1`] = ` `; -exports[`EuiButton props color ghost is rendered 1`] = ` - -`; - exports[`EuiButton props color primary is rendered 1`] = ` `; -exports[`EuiButtonEmpty props color ghost is rendered 1`] = ` - -`; - exports[`EuiButtonEmpty props color primary is rendered 1`] = ` `; -exports[`EuiButtonIcon props color ghost is rendered 1`] = ` - -`; - exports[`EuiButtonIcon props color primary is rendered 1`] = `