diff --git a/src-docs/src/views/call_out/call_out_example.js b/src-docs/src/views/call_out/call_out_example.js index 711ee93ae71..feda7223691 100644 --- a/src-docs/src/views/call_out/call_out_example.js +++ b/src-docs/src/views/call_out/call_out_example.js @@ -40,7 +40,7 @@ const warningSnippet = [ import Danger from './danger'; const dangerSource = require('!!raw-loader!./danger'); const dangerSnippet = [ - ` + `

`, diff --git a/src-docs/src/views/call_out/warning.tsx b/src-docs/src/views/call_out/warning.tsx index c02be2e889b..22e2363ed69 100644 --- a/src-docs/src/views/call_out/warning.tsx +++ b/src-docs/src/views/call_out/warning.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { EuiCallOut, EuiLink, EuiButton } from '../../../../src'; export default () => ( - +

Here be dragons. Don’t wanna mess with no dragons. And{' '} here’s a link. diff --git a/src-docs/src/views/control_bar/control_bar.js b/src-docs/src/views/control_bar/control_bar.js index b415911c470..71fc34d4550 100644 --- a/src-docs/src/views/control_bar/control_bar.js +++ b/src-docs/src/views/control_bar/control_bar.js @@ -45,7 +45,7 @@ export default () => { { controlType: 'icon', id: 'status_icon', - iconType: 'alert', + iconType: 'warning', color: 'warning', 'aria-label': 'Repo Status', }, diff --git a/src-docs/src/views/control_bar/control_bar_example.js b/src-docs/src/views/control_bar/control_bar_example.js index 42e414542de..6bb05fe360c 100644 --- a/src-docs/src/views/control_bar/control_bar_example.js +++ b/src-docs/src/views/control_bar/control_bar_example.js @@ -52,7 +52,7 @@ const controlBarSnippet = ` If deliberately leaving out the default{' '} @@ -150,7 +150,7 @@ export const DataGridCellPopoverExample = {

If columns.cellActions is defined,{' '} diff --git a/src-docs/src/views/elastic_charts/accessibility_example.js b/src-docs/src/views/elastic_charts/accessibility_example.js index 5d1ce1601b9..3cdfe7be46b 100644 --- a/src-docs/src/views/elastic_charts/accessibility_example.js +++ b/src-docs/src/views/elastic_charts/accessibility_example.js @@ -143,7 +143,7 @@ export const ElasticChartsAccessibilityExample = { } color="warning" - iconType="alert" + iconType="warning" />

diff --git a/src-docs/src/views/elastic_charts/pie_example.js b/src-docs/src/views/elastic_charts/pie_example.js index 36f68973257..8b2bc087d92 100644 --- a/src-docs/src/views/elastic_charts/pie_example.js +++ b/src-docs/src/views/elastic_charts/pie_example.js @@ -40,7 +40,7 @@ const introCards = [ }, { title: "Don't use", - iconType: 'crossInACircleFilled', + iconType: 'error', iconColor: 'danger', description: ( <> @@ -62,7 +62,7 @@ const introCards = [ }, { title: 'Be careful', - iconType: 'alert', + iconType: 'warning', iconColor: 'warning', description: ( <> diff --git a/src-docs/src/views/empty_prompt/_types_of_use_cases.tsx b/src-docs/src/views/empty_prompt/_types_of_use_cases.tsx index 9dd886290e0..a2d553ab994 100644 --- a/src-docs/src/views/empty_prompt/_types_of_use_cases.tsx +++ b/src-docs/src/views/empty_prompt/_types_of_use_cases.tsx @@ -198,7 +198,7 @@ export const typesOfUseCases: { ), }, example: { - iconType: 'alert', + iconType: 'error', title:

Unable to load your dashboards

, body: (

diff --git a/src-docs/src/views/empty_prompt/empty_prompt_error.tsx b/src-docs/src/views/empty_prompt/empty_prompt_error.tsx index c4867bf4671..ef89b5da9ba 100644 --- a/src-docs/src/views/empty_prompt/empty_prompt_error.tsx +++ b/src-docs/src/views/empty_prompt/empty_prompt_error.tsx @@ -4,7 +4,7 @@ import { EuiEmptyPrompt } from '../../../../src/components'; export default () => ( Unable to load your dashboards} body={ diff --git a/src-docs/src/views/empty_prompt/empty_prompt_example.js b/src-docs/src/views/empty_prompt/empty_prompt_example.js index 2ebf1d01a2b..450d8a2a927 100644 --- a/src-docs/src/views/empty_prompt/empty_prompt_example.js +++ b/src-docs/src/views/empty_prompt/empty_prompt_example.js @@ -66,7 +66,7 @@ import Error from './empty_prompt_error'; const errorSource = require('!!raw-loader!./empty_prompt_error'); const errorSnippet = `There was an error} />`; diff --git a/src-docs/src/views/empty_prompt/empty_prompt_states.tsx b/src-docs/src/views/empty_prompt/empty_prompt_states.tsx index 48142eb6686..67d903b7165 100644 --- a/src-docs/src/views/empty_prompt/empty_prompt_states.tsx +++ b/src-docs/src/views/empty_prompt/empty_prompt_states.tsx @@ -29,7 +29,7 @@ export default () => { case 'error': emptyPromptProps = { color: 'danger', - iconType: 'alert', + iconType: 'error', title:

Unable to load your dashboards

, body: (

diff --git a/src-docs/src/views/guidelines/accessibility.js b/src-docs/src/views/guidelines/accessibility.js index 945e38eade4..fbe82407b97 100644 --- a/src-docs/src/views/guidelines/accessibility.js +++ b/src-docs/src/views/guidelines/accessibility.js @@ -445,7 +445,7 @@ export default { tabIndex=-1.

Using tabIndex values greater than 0 is diff --git a/src-docs/src/views/guidelines/writing_examples.js b/src-docs/src/views/guidelines/writing_examples.js index 728d87c8fbc..6b05fea46ae 100644 --- a/src-docs/src/views/guidelines/writing_examples.js +++ b/src-docs/src/views/guidelines/writing_examples.js @@ -128,7 +128,7 @@ export const WritingExamples = () => { >

diff --git a/src-docs/src/views/icon/icons.js b/src-docs/src/views/icon/icons.js index 9464c46f36b..5d10b73c052 100644 --- a/src-docs/src/views/icon/icons.js +++ b/src-docs/src/views/icon/icons.js @@ -13,7 +13,6 @@ import { export const iconTypes = [ 'accessibility', 'aggregate', - 'alert', 'analyzeEvent', 'annotation', 'apmTrace', @@ -62,7 +61,6 @@ export const iconTypes = [ 'copyClipboard', 'cross', 'crosshairs', - 'crossInACircleFilled', 'currency', 'cut', 'database', @@ -277,6 +275,7 @@ export const iconTypes = [ 'visTimelion', 'visVega', 'visVisualBuilder', + 'warning', 'wordWrap', 'wordWrapDisabled', 'wrench', @@ -285,7 +284,7 @@ export const iconTypes = [ export default () => ( <> - {''} + {''} diff --git a/src-docs/src/views/page_components/page_example.js b/src-docs/src/views/page_components/page_example.js index 08a282e04ed..93aed0e9cc6 100644 --- a/src-docs/src/views/page_components/page_example.js +++ b/src-docs/src/views/page_components/page_example.js @@ -173,11 +173,7 @@ export const PageExample = { - + - + - + diff --git a/src-docs/src/views/page_template/examples.tsx b/src-docs/src/views/page_template/examples.tsx index 8a8acce7e31..05b87c27fa0 100644 --- a/src-docs/src/views/page_template/examples.tsx +++ b/src-docs/src/views/page_template/examples.tsx @@ -140,7 +140,7 @@ export const PageTemplateInfo = { intro: ( <> @@ -289,7 +289,7 @@ export const PageTemplateExample = () => ( @@ -353,7 +353,7 @@ export const PageTemplateExample = () => ( diff --git a/src-docs/src/views/resize_observer/resize_observer_hook.js b/src-docs/src/views/resize_observer/resize_observer_hook.js index 12f9ae8c187..270b0fac636 100644 --- a/src-docs/src/views/resize_observer/resize_observer_hook.js +++ b/src-docs/src/views/resize_observer/resize_observer_hook.js @@ -37,8 +37,8 @@ export const ResizeObserverHookExample = () => {

) : (

- Browser does - not support ResizeObserver API. Using MutationObserver. + Browser does not support + ResizeObserver API. Using MutationObserver.

)}

diff --git a/src-docs/src/views/selectable/selectable_templates/sitewide_search.tsx b/src-docs/src/views/selectable/selectable_templates/sitewide_search.tsx index c7205a5470f..2b791a9c709 100644 --- a/src-docs/src/views/selectable/selectable_templates/sitewide_search.tsx +++ b/src-docs/src/views/selectable/selectable_templates/sitewide_search.tsx @@ -336,7 +336,7 @@ const searchData: EuiSelectableTemplateSitewideOption[] = [ label: 'Totally custom', searchableLabel: 'Totally custom with pink metadata', icon: { - type: 'alert', + type: 'warning', color: 'accent', }, meta: [ diff --git a/src-docs/src/views/stat/stat_combos.js b/src-docs/src/views/stat/stat_combos.js index b53a0a616b3..5e06d810df2 100644 --- a/src-docs/src/views/stat/stat_combos.js +++ b/src-docs/src/views/stat/stat_combos.js @@ -73,7 +73,7 @@ export default () => { description={ - 12,20% + 12,20% } @@ -113,7 +113,7 @@ export default () => { > - 66,55% + 66,55% diff --git a/src-docs/src/views/toast/guidelines.js b/src-docs/src/views/toast/guidelines.js index 5d01c2f75f0..a1747f79b17 100644 --- a/src-docs/src/views/toast/guidelines.js +++ b/src-docs/src/views/toast/guidelines.js @@ -45,7 +45,7 @@ export default () => { title="The maximum bucket size of 200 was exceeded" color="danger" size="s" - iconType="alert" + iconType="error" /> @@ -307,7 +307,7 @@ and space to read it properly. Alternatively just link to a full page.

diff --git a/src-docs/src/views/toast/toast_example.js b/src-docs/src/views/toast/toast_example.js index efe794e548c..a9794f4f25f 100644 --- a/src-docs/src/views/toast/toast_example.js +++ b/src-docs/src/views/toast/toast_example.js @@ -79,7 +79,7 @@ const dangerToastSnippet = [ ` `, diff --git a/src-docs/src/views/toast/warning.js b/src-docs/src/views/toast/warning.js index 03a2cc7adff..a3286410a5c 100644 --- a/src-docs/src/views/toast/warning.js +++ b/src-docs/src/views/toast/warning.js @@ -6,6 +6,6 @@ export default () => ( ); diff --git a/src-docs/src/views/tool_tip/icon_tip.js b/src-docs/src/views/tool_tip/icon_tip.js index fbb54f8077e..80d4db6b30f 100644 --- a/src-docs/src/views/tool_tip/icon_tip.js +++ b/src-docs/src/views/tool_tip/icon_tip.js @@ -39,7 +39,7 @@ export default () => { diff --git a/src-docs/src/views/tool_tip/tool_tip.js b/src-docs/src/views/tool_tip/tool_tip.js index 87d8655027e..373cf14971a 100644 --- a/src-docs/src/views/tool_tip/tool_tip.js +++ b/src-docs/src/views/tool_tip/tool_tip.js @@ -51,7 +51,7 @@ export default () => (

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

diff --git a/src-docs/src/views/window_event/window_event_example.js b/src-docs/src/views/window_event/window_event_example.js index bb60c385ff1..71a040c5a7f 100644 --- a/src-docs/src/views/window_event/window_event_example.js +++ b/src-docs/src/views/window_event/window_event_example.js @@ -60,7 +60,7 @@ export const WindowEventExample = {

Since window event listeners are global, they can conflict with diff --git a/src/components/control_bar/__snapshots__/control_bar.test.tsx.snap b/src/components/control_bar/__snapshots__/control_bar.test.tsx.snap index f4808ad6251..9fc05d0f7eb 100644 --- a/src/components/control_bar/__snapshots__/control_bar.test.tsx.snap +++ b/src/components/control_bar/__snapshots__/control_bar.test.tsx.snap @@ -72,7 +72,7 @@ Array [ Sample Icon @@ -168,7 +168,7 @@ Array [ Sample Icon @@ -264,7 +264,7 @@ Array [ Sample Icon @@ -360,7 +360,7 @@ Array [ Sample Icon @@ -455,7 +455,7 @@ exports[`EuiControlBar props position is rendered 1`] = ` Sample Icon @@ -544,7 +544,7 @@ Array [ Sample Icon @@ -640,7 +640,7 @@ Array [ Sample Icon @@ -741,7 +741,7 @@ Array [ Sample Icon diff --git a/src/components/control_bar/control_bar.a11y.tsx b/src/components/control_bar/control_bar.a11y.tsx index e955cf2de23..600519337fe 100644 --- a/src/components/control_bar/control_bar.a11y.tsx +++ b/src/components/control_bar/control_bar.a11y.tsx @@ -52,7 +52,7 @@ const ControlBar = () => { { controlType: 'icon', id: 'status_icon', - iconType: 'alert', + iconType: 'warning', color: 'warning', 'aria-label': 'Repo Status', }, diff --git a/src/components/control_bar/control_bar.test.tsx b/src/components/control_bar/control_bar.test.tsx index b5935481ec7..c5ad73f79a1 100644 --- a/src/components/control_bar/control_bar.test.tsx +++ b/src/components/control_bar/control_bar.test.tsx @@ -52,7 +52,7 @@ const controls: Control[] = [ { controlType: 'icon', id: 'sample_icon', - iconType: 'alert', + iconType: 'error', color: 'danger', 'aria-label': 'Sample Icon', }, diff --git a/src/components/datagrid/body/header/column_actions.test.tsx b/src/components/datagrid/body/header/column_actions.test.tsx index ce8e7e9797a..824060b885b 100644 --- a/src/components/datagrid/body/header/column_actions.test.tsx +++ b/src/components/datagrid/body/header/column_actions.test.tsx @@ -69,7 +69,7 @@ describe('getColumnActions', () => { column: { ...testArgs.column, actions: { - additional: [{ label: 'Hi world!', iconType: 'alert' }], + additional: [{ label: 'Hi world!', iconType: 'warning' }], }, }, }); @@ -78,7 +78,7 @@ describe('getColumnActions', () => { const customAction = items[3]; expect(customAction).toMatchInlineSnapshot(` Object { - "iconType": "alert", + "iconType": "warning", "label": "Hi world!", "onClick": [Function], } diff --git a/src/components/datagrid/data_grid.test.tsx b/src/components/datagrid/data_grid.test.tsx index 1ee9c75b647..8a9483aefcf 100644 --- a/src/components/datagrid/data_grid.test.tsx +++ b/src/components/datagrid/data_grid.test.tsx @@ -920,7 +920,7 @@ describe('EuiDataGrid', () => { ? 1 : 0; }, - icon: 'alert', + icon: 'warning', color: 'primary', sortTextAsc: 'a-z', sortTextDesc: 'z-a', @@ -2096,7 +2096,7 @@ describe('EuiDataGrid', () => { return ( alertFn(rowIndex, columnId)} - iconType="alert" + iconType="warning" aria-label="test1 aria label" data-test-subj={ isExpanded ? 'alertActionPopover' : 'alertAction' diff --git a/src/components/date_picker/__snapshots__/date_picker_range.test.tsx.snap b/src/components/date_picker/__snapshots__/date_picker_range.test.tsx.snap index 876f574fd6e..09d5ec1120b 100644 --- a/src/components/date_picker/__snapshots__/date_picker_range.test.tsx.snap +++ b/src/components/date_picker/__snapshots__/date_picker_range.test.tsx.snap @@ -232,7 +232,7 @@ exports[`EuiDatePickerRange isInvalid is rendered 1`] = ` > = ({ ); diff --git a/src/components/expression/__snapshots__/expression.test.tsx.snap b/src/components/expression/__snapshots__/expression.test.tsx.snap index d437b391d59..4a8ea32f7df 100644 --- a/src/components/expression/__snapshots__/expression.test.tsx.snap +++ b/src/components/expression/__snapshots__/expression.test.tsx.snap @@ -139,7 +139,7 @@ exports[`EuiExpression props descriptionWidth changes the description's wid `; @@ -217,7 +217,7 @@ exports[`EuiExpression props isInvalid renders error state 1`] = ` `; diff --git a/src/components/expression/expression.tsx b/src/components/expression/expression.tsx index 2c7d9c1a0cf..61db07c733b 100644 --- a/src/components/expression/expression.tsx +++ b/src/components/expression/expression.tsx @@ -68,7 +68,7 @@ export type EuiExpressionProps = CommonProps & { */ display?: 'inline' | 'columns'; /** - * Forces color to display as `danger` and shows an `alert` icon + * Forces color to display as `danger` and shows an `error` icon */ isInvalid?: boolean; /** @@ -161,7 +161,7 @@ export const EuiExpression: FunctionComponent diff --git a/src/components/form/field_number/__snapshots__/field_number.test.tsx.snap b/src/components/form/field_number/__snapshots__/field_number.test.tsx.snap index 110a7972d07..cb7de7ebd8f 100644 --- a/src/components/form/field_number/__snapshots__/field_number.test.tsx.snap +++ b/src/components/form/field_number/__snapshots__/field_number.test.tsx.snap @@ -4,7 +4,7 @@ exports[`EuiFieldNumber is rendered 1`] = ` diff --git a/src/components/form/field_number/field_number.test.tsx b/src/components/form/field_number/field_number.test.tsx index 16b0fcb583e..a734c4be1cd 100644 --- a/src/components/form/field_number/field_number.test.tsx +++ b/src/components/form/field_number/field_number.test.tsx @@ -34,7 +34,7 @@ describe('EuiFieldNumber', () => { max={8} step={1} value={1} - icon="alert" + icon="warning" onChange={() => {}} {...requiredProps} /> diff --git a/src/components/form/form_control_layout/__snapshots__/form_control_layout.test.tsx.snap b/src/components/form/form_control_layout/__snapshots__/form_control_layout.test.tsx.snap index f6fb5680b21..1d737b1b648 100644 --- a/src/components/form/form_control_layout/__snapshots__/form_control_layout.test.tsx.snap +++ b/src/components/form/form_control_layout/__snapshots__/form_control_layout.test.tsx.snap @@ -56,7 +56,7 @@ exports[`EuiFormControlLayout props compressed renders small-sized icon, clear b @@ -109,7 +109,7 @@ exports[`EuiFormControlLayout props icon is rendered as a string 1`] = ` @@ -134,7 +134,7 @@ exports[`EuiFormControlLayout props icon is rendered as an object 1`] = ` @@ -158,7 +158,7 @@ exports[`EuiFormControlLayout props icon side left is rendered 1`] = ` @@ -182,7 +182,7 @@ exports[`EuiFormControlLayout props icon side right is rendered 1`] = ` diff --git a/src/components/form/form_control_layout/__snapshots__/form_control_layout_custom_icon.test.tsx.snap b/src/components/form/form_control_layout/__snapshots__/form_control_layout_custom_icon.test.tsx.snap index 6988b379391..e25e7d1a49a 100644 --- a/src/components/form/form_control_layout/__snapshots__/form_control_layout_custom_icon.test.tsx.snap +++ b/src/components/form/form_control_layout/__snapshots__/form_control_layout_custom_icon.test.tsx.snap @@ -11,7 +11,7 @@ exports[`EuiFormControlLayoutCustomIcon is rendered as button 1`] = ` aria-hidden="true" class="euiFormControlLayoutCustomIcon__icon" color="danger" - data-euiicon-type="alert" + data-euiicon-type="error" /> `; @@ -25,7 +25,7 @@ exports[`EuiFormControlLayoutCustomIcon is rendered as span 1`] = ` `; @@ -37,7 +37,7 @@ exports[`EuiFormControlLayoutCustomIcon size is rendered 1`] = ` `; diff --git a/src/components/form/form_control_layout/__snapshots__/form_control_layout_delimited.test.tsx.snap b/src/components/form/form_control_layout/__snapshots__/form_control_layout_delimited.test.tsx.snap index 5d9de21e924..bac34682d28 100644 --- a/src/components/form/form_control_layout/__snapshots__/form_control_layout_delimited.test.tsx.snap +++ b/src/components/form/form_control_layout/__snapshots__/form_control_layout_delimited.test.tsx.snap @@ -44,7 +44,7 @@ exports[`EuiFormControlLayoutDelimited props delimiter is rendered as a node 1`] class="euiText euiFormControlLayoutDelimited__delimeter emotion-euiText-s-euiTextColor-subdued" > { describe('icon', () => { describe('is rendered', () => { test('as a string', () => { - const component = render(); + const component = render(); expect(component).toMatchSnapshot(); }); test('as an object', () => { const icon = { - type: 'alert', + type: 'error', className: 'customClass', 'data-test-subj': 'myIcon', }; @@ -56,7 +56,7 @@ describe('EuiFormControlLayout', () => { ICON_SIDES.forEach((side) => { test(`${side} is rendered`, () => { const icon = { - type: 'alert', + type: 'error', side, }; @@ -70,7 +70,7 @@ describe('EuiFormControlLayout', () => { describe('onClick', () => { test('is called when clicked', () => { const icon = { - type: 'alert', + type: 'error', onClick: jest.fn(), 'data-test-subj': 'myIcon', }; @@ -136,7 +136,7 @@ describe('EuiFormControlLayout', () => { const component = render( diff --git a/src/components/form/form_control_layout/form_control_layout_custom_icon.test.tsx b/src/components/form/form_control_layout/form_control_layout_custom_icon.test.tsx index e3c76dbb47b..5d4968985de 100644 --- a/src/components/form/form_control_layout/form_control_layout_custom_icon.test.tsx +++ b/src/components/form/form_control_layout/form_control_layout_custom_icon.test.tsx @@ -18,7 +18,7 @@ describe('EuiFormControlLayoutCustomIcon', () => { test('is rendered as button', () => { const props: EuiFormControlLayoutCustomIconProps = { onClick: () => null, - type: 'alert', + type: 'error', iconRef: 'icon', color: 'danger', }; @@ -31,7 +31,7 @@ describe('EuiFormControlLayoutCustomIcon', () => { test('is rendered as span', () => { const props: EuiFormControlLayoutCustomIconProps = { - type: 'alert', + type: 'error', iconRef: 'icon', }; const component = render( @@ -43,7 +43,7 @@ describe('EuiFormControlLayoutCustomIcon', () => { test('size is rendered', () => { const component = render( - + ); expect(component).toMatchSnapshot(); diff --git a/src/components/form/form_control_layout/form_control_layout_delimited.test.tsx b/src/components/form/form_control_layout/form_control_layout_delimited.test.tsx index 8ead79da644..37c2ee15b5a 100644 --- a/src/components/form/form_control_layout/form_control_layout_delimited.test.tsx +++ b/src/components/form/form_control_layout/form_control_layout_delimited.test.tsx @@ -42,7 +42,7 @@ describe('EuiFormControlLayoutDelimited', () => { }); test('as a node', () => { - const icon = ; + const icon = ; const component = render( Moby Dick diff --git a/src/components/header/header_logo.test.tsx b/src/components/header/header_logo.test.tsx index 52210c91b64..8ab446237c4 100644 --- a/src/components/header/header_logo.test.tsx +++ b/src/components/header/header_logo.test.tsx @@ -34,7 +34,7 @@ describe('EuiHeaderLogo', () => { test('renders optional props', () => { const component = render( diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 4937a1845e0..d6fd6df13be 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -610,27 +610,6 @@ exports[`EuiIcon props type aggregate is rendered 1`] = ` `; -exports[`EuiIcon props type alert is rendered 1`] = ` - -`; - exports[`EuiIcon props type analyzeEvent is rendered 1`] = `

{ const component = render( ); diff --git a/src/components/selectable/selectable_templates/__snapshots__/selectable_template_sitewide_option.test.tsx.snap b/src/components/selectable/selectable_templates/__snapshots__/selectable_template_sitewide_option.test.tsx.snap index fe667598164..9491e9ee279 100644 --- a/src/components/selectable/selectable_templates/__snapshots__/selectable_template_sitewide_option.test.tsx.snap +++ b/src/components/selectable/selectable_templates/__snapshots__/selectable_template_sitewide_option.test.tsx.snap @@ -57,7 +57,7 @@ Array [ "className": "euiSelectableTemplateSitewide__listItem", "icon": Object { "color": "accent", - "type": "alert", + "type": "warning", }, "key": "Other metas", "label": "Other metas", @@ -81,7 +81,7 @@ Array [ "prepend": , "searchableLabel": "Totally custom with pink metadata", "title": "Other metas • Article, Case, Text, I have a custom type", diff --git a/src/components/selectable/selectable_templates/selectable_template_sitewide.test.tsx b/src/components/selectable/selectable_templates/selectable_template_sitewide.test.tsx index a38f88300c9..b38f7eaf337 100644 --- a/src/components/selectable/selectable_templates/selectable_template_sitewide.test.tsx +++ b/src/components/selectable/selectable_templates/selectable_template_sitewide.test.tsx @@ -51,7 +51,7 @@ const options: EuiSelectableTemplateSitewideOption[] = [ label: 'Other metas', searchableLabel: 'Totally custom with pink metadata', icon: { - type: 'alert', + type: 'warning', color: 'accent', }, meta: [ diff --git a/src/components/selectable/selectable_templates/selectable_template_sitewide_option.test.tsx b/src/components/selectable/selectable_templates/selectable_template_sitewide_option.test.tsx index d04c5b88bdf..9dad88c71c7 100644 --- a/src/components/selectable/selectable_templates/selectable_template_sitewide_option.test.tsx +++ b/src/components/selectable/selectable_templates/selectable_template_sitewide_option.test.tsx @@ -51,7 +51,7 @@ const options: EuiSelectableTemplateSitewideOption[] = [ label: 'Other metas', searchableLabel: 'Totally custom with pink metadata', icon: { - type: 'alert', + type: 'warning', color: 'accent', }, meta: [ diff --git a/src/components/steps/__snapshots__/step.test.tsx.snap b/src/components/steps/__snapshots__/step.test.tsx.snap index 0782a6833ca..a66bca669d7 100644 --- a/src/components/steps/__snapshots__/step.test.tsx.snap +++ b/src/components/steps/__snapshots__/step.test.tsx.snap @@ -307,7 +307,7 @@ exports[`EuiStep props status warning is rendered 1`] = ` > Step 1 has warnings diff --git a/src/components/steps/__snapshots__/step_horizontal.test.tsx.snap b/src/components/steps/__snapshots__/step_horizontal.test.tsx.snap index f32ee8e340e..172248c6101 100644 --- a/src/components/steps/__snapshots__/step_horizontal.test.tsx.snap +++ b/src/components/steps/__snapshots__/step_horizontal.test.tsx.snap @@ -219,7 +219,7 @@ exports[`EuiStepHorizontal props status warning is rendered 1`] = ` > Step 1 has warnings diff --git a/src/components/steps/__snapshots__/step_number.test.tsx.snap b/src/components/steps/__snapshots__/step_number.test.tsx.snap index ea59f9b38ee..aba308da31e 100644 --- a/src/components/steps/__snapshots__/step_number.test.tsx.snap +++ b/src/components/steps/__snapshots__/step_number.test.tsx.snap @@ -139,7 +139,7 @@ exports[`EuiStepNumber props status warning is rendered 1`] = ` > Step 1 has warnings diff --git a/src/components/steps/step_number.tsx b/src/components/steps/step_number.tsx index 31d102446da..fe450ca6c6e 100644 --- a/src/components/steps/step_number.tsx +++ b/src/components/steps/step_number.tsx @@ -109,7 +109,7 @@ export const EuiStepNumber: FunctionComponent = ({ ]; const iconTypeMap = { danger: 'cross', - warning: 'alert', + warning: 'warning', complete: 'check', }; diff --git a/src/components/toast/__snapshots__/global_toast_list.test.tsx.snap b/src/components/toast/__snapshots__/global_toast_list.test.tsx.snap index 82f4413a021..38b55453b7a 100644 --- a/src/components/toast/__snapshots__/global_toast_list.test.tsx.snap +++ b/src/components/toast/__snapshots__/global_toast_list.test.tsx.snap @@ -81,7 +81,7 @@ exports[`EuiGlobalToastList props side can be changed to left 1`] = `