Skip to content

Commit 0ef17d8

Browse files
committed
feat: replace deprecated icons
1 parent e8f6b68 commit 0ef17d8

File tree

87 files changed

+143
-143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+143
-143
lines changed

packages/eui/src/components/accordion/accordion_trigger/accordion_arrow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const EuiAccordionArrow: FunctionComponent<_EuiAccordionArrowProps> = ({
4747
{...rest}
4848
className={classes}
4949
css={cssStyles}
50-
iconType="arrowRight"
50+
iconType="chevronSingleRight"
5151
/>
5252
);
5353
};

packages/eui/src/components/basic_table/basic_table.a11y.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ describe('EuiTable', () => {
195195
}
196196
iconType={
197197
itemIdToExpandedRowMapValues[user.id]
198-
? 'arrowDown'
199-
: 'arrowRight'
198+
? 'chevronSingleDown'
199+
: 'chevronSingleRight'
200200
}
201201
/>
202202
);

packages/eui/src/components/basic_table/basic_table.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const columns: Array<EuiBasicTableColumn<User>> = [
150150
name: 'User profile',
151151
description: ({ firstName, lastName }) =>
152152
`Visit ${firstName} ${lastName}'s profile`,
153-
icon: 'editorLink',
153+
icon: 'link',
154154
color: 'primary',
155155
type: 'icon',
156156
enabled: ({ online }) => !!online,

packages/eui/src/components/basic_table/basic_table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ export class EuiBasicTable<T extends object = any> extends Component<
968968
colSpan={colSpan}
969969
mobileOptions={{ width: '100%' }}
970970
>
971-
<EuiIcon type="minusInCircle" color="danger" /> {error}
971+
<EuiIcon type="minusCircle" color="danger" /> {error}
972972
</EuiTableRowCell>
973973
</EuiTableRow>
974974
);

packages/eui/src/components/basic_table/collapsed_item_actions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export const CollapsedItemActions = <T extends {}>({
135135
: allActionsButtonAriaLabel
136136
}
137137
title={actionsDisabled ? allActionsButtonDisabledAriaLabel : undefined}
138-
iconType="boxesHorizontal"
138+
iconType="boxesVertical"
139139
color="text"
140140
isDisabled={actionsDisabled}
141141
onClick={() => setPopoverOpen((isOpen) => !isOpen)}

packages/eui/src/components/basic_table/in_memory_table.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const columns: Array<EuiBasicTableColumn<User>> = [
133133
name: 'User profile',
134134
description: ({ firstName, lastName }) =>
135135
`Visit ${firstName} ${lastName}'s profile`,
136-
icon: 'editorLink',
136+
icon: 'link',
137137
color: 'primary',
138138
type: 'icon',
139139
enabled: ({ online }) => !!online,

packages/eui/src/components/breadcrumbs/_breadcrumb_content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ const EuiBreadcrumbPopover = forwardRef<
213213
>
214214
<span css={truncationStyles}>{children}</span>
215215
<EuiIcon
216-
type="arrowDown"
216+
type="chevronSingleDown"
217217
size="s"
218218
aria-label={` - ${popoverAriaLabel}`}
219219
/>

packages/eui/src/components/button/button_group/button_group.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export const WithTooltips: Story = {
136136
options: [
137137
{
138138
id: 'button1',
139-
iconType: 'securitySignal',
139+
iconType: 'radar',
140140
label: 'No tooltip',
141141
},
142142
{

packages/eui/src/components/button/split_button/split_button.stories.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const Playground: Story = {
5353
children: [
5454
<EuiSplitButton.ActionPrimary>Button</EuiSplitButton.ActionPrimary>,
5555
<EuiSplitButton.ActionSecondary
56-
iconType="arrowDown"
56+
iconType="chevronSingleDown"
5757
aria-label="Secondary action"
5858
/>,
5959
],
@@ -86,7 +86,7 @@ export const WithTooltip: Story = {
8686
Button
8787
</EuiSplitButton.ActionPrimary>,
8888
<EuiSplitButton.ActionSecondary
89-
iconType="arrowDown"
89+
iconType="chevronSingleDown"
9090
aria-label="Secondary action"
9191
tooltipProps={{
9292
content: 'Tooltip content',
@@ -109,7 +109,7 @@ export const WithPopover: Story = {
109109
children: [
110110
<EuiSplitButton.ActionPrimary>Button</EuiSplitButton.ActionPrimary>,
111111
<EuiSplitButton.ActionSecondary
112-
iconType="arrowDown"
112+
iconType="chevronSingleDown"
113113
aria-label="Secondary action"
114114
popoverProps={{
115115
isOpen: true,
@@ -123,7 +123,7 @@ export const WithPopover: Story = {
123123
items: [
124124
{
125125
name: 'Action 1 (click)',
126-
icon: 'search',
126+
icon: 'magnify',
127127
onClick: () => {},
128128
},
129129
{
@@ -190,7 +190,7 @@ export const WithWrappingPopover: Story = {
190190
args: {
191191
children: [
192192
<EuiSplitButton.ActionPrimary>Button</EuiSplitButton.ActionPrimary>,
193-
<EuiSplitButton.ActionSecondary iconType="arrowDown" />,
193+
<EuiSplitButton.ActionSecondary iconType="chevronSingleDown" />,
194194
],
195195
},
196196
render: function Render({ children, ...rest }) {
@@ -243,7 +243,7 @@ export const KitchenSink: Story = {
243243
const label = 'Button';
244244
const secondaryLabel = 'Secondary Button';
245245
const primaryIconType = 'faceHappy';
246-
const secondaryIconType = 'arrowDown';
246+
const secondaryIconType = 'chevronSingleDown';
247247

248248
const variants = BUTTON_COLORS;
249249

packages/eui/src/components/button/split_button/split_button.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const defaultPrimaryActionProps = {
2424
};
2525

2626
const defaultSecondaryActionProps = {
27-
iconType: 'arrowDown',
27+
iconType: 'chevronSingleDown',
2828
'aria-label': 'Secondary action',
2929
'data-test-subj': 'secondary-action',
3030
};

0 commit comments

Comments
 (0)