Skip to content

Commit

Permalink
Revert "Added EuiMark (elastic#3060)"
Browse files Browse the repository at this point in the history
This reverts commit a8a4063.
  • Loading branch information
Marvin9 committed Mar 14, 2020
1 parent 1b7ee37 commit 2b8ac6e
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 96 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
- Added alpha channel (opacity) support to `EuiColorPicker` and `EuiColorStops` ([#2850](https://github.com/elastic/eui/pull/2850))
- Added `useResizeObserver` hook ([#2991](https://github.com/elastic/eui/pull/2991))
- Added `showColumnSelector.allowHide` and `showColumnSelector.allowReorder` props to `EuiDataGrid` UI configuration ([#2993](https://github.com/elastic/eui/pull/2993))
- Added `EuiMark` component ([#3060](https://github.com/elastic/eui/pull/3060))

**Bug Fixes**

Expand Down
4 changes: 2 additions & 2 deletions src-docs/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ import { HeaderExample } from './views/header/header_example';

import { HealthExample } from './views/health/health_example';

import { HighlightAndMarkExample } from './views/highlight_and_mark/highlight_and_mark_example';
import { HighlightExample } from './views/highlight/highlight_example';

import { HorizontalRuleExample } from './views/horizontal_rule/horizontal_rule_example';

Expand Down Expand Up @@ -413,7 +413,7 @@ const navigation = [
DelayRenderExample,
ErrorBoundaryExample,
FocusTrapExample,
HighlightAndMarkExample,
HighlightExample,
InnerTextExample,
I18nExample,
IsColorDarkExample,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@ import { renderToHtml } from '../../services';

import { GuideSectionTypes } from '../../components';

import { EuiCode, EuiHighlight, EuiMark } from '../../../../src/components';
import { EuiCode, EuiHighlight } from '../../../../src/components';

import { Highlight } from './highlight';
import { Mark } from './mark';

const highlightSource = require('!!raw-loader!./highlight');
const highlightHtml = renderToHtml(Highlight);

const markSource = require('!!raw-loader!./mark');
const markHtml = renderToHtml(Mark);

export const HighlightAndMarkExample = {
title: 'Highlight and mark',
export const HighlightExample = {
title: 'Highlight',
sections: [
{
title: 'Highlight',
Expand All @@ -40,26 +35,5 @@ export const HighlightAndMarkExample = {
components: { EuiHighlight },
demo: <Highlight />,
},
{
title: 'Mark',
source: [
{
type: GuideSectionTypes.JS,
code: markSource,
},
{
type: GuideSectionTypes.HTML,
code: markHtml,
},
],
text: (
<p>
Use <EuiCode>EuiMark</EuiCode> to wrap a string in an
<EuiCode>mark</EuiCode> element.
</p>
),
components: { EuiMark },
demo: <Mark />,
},
],
};
13 changes: 0 additions & 13 deletions src-docs/src/views/highlight_and_mark/mark.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ export { EuiLink } from './link';

export { EuiListGroup, EuiListGroupItem } from './list_group';

export { EuiMark } from './mark';

export {
EUI_MODAL_CANCEL_BUTTON,
EUI_MODAL_CONFIRM_BUTTON,
Expand Down
1 change: 0 additions & 1 deletion src/components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
@import 'link/index';
@import 'list_group/index';
@import 'loading/index';
@import 'mark/index';
@import 'modal/index';
@import 'nav_drawer/index';
@import 'overlay_mask/index';
Expand Down
9 changes: 0 additions & 9 deletions src/components/mark/__snapshots__/mark.test.tsx.snap

This file was deleted.

1 change: 0 additions & 1 deletion src/components/mark/_index.scss

This file was deleted.

4 changes: 0 additions & 4 deletions src/components/mark/_mark.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/components/mark/index.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/components/mark/mark.test.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions src/components/mark/mark.tsx

This file was deleted.

0 comments on commit 2b8ac6e

Please sign in to comment.