[Discover] Use new icons for the sidebar toggle button (#167625)

A follow up for https://github.com/elastic/kibana/pull/165866

## Summary

This PR replaces icons for the sidebar toggle button.

<img width="200" alt="Screenshot 2023-09-29 at 13 00 39"
src="6ed10562-9a50-48ce-b6b2-030ab7b11e11">
<img width="200" alt="Screenshot 2023-09-29 at 13 00 47"
src="e286e152-a6bb-4b21-a97a-44419757dafb">
This commit is contained in:
Julia Rechkunova 2023-09-30 10:47:56 +02:00 committed by GitHub
parent b03b2fd477
commit 3550650a91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,6 @@ export const SidebarToggleButton: React.FC<SidebarToggleButtonProps> = ({
buttonSize, buttonSize,
onChange, onChange,
}) => { }) => {
// TODO: replace with new Eui icons once available
return ( return (
<div data-test-subj={dataTestSubj}> <div data-test-subj={dataTestSubj}>
<IconButtonGroup <IconButtonGroup
@ -48,7 +47,7 @@ export const SidebarToggleButton: React.FC<SidebarToggleButtonProps> = ({
label: i18n.translate('unifiedFieldList.fieldListSidebar.expandSidebarButton', { label: i18n.translate('unifiedFieldList.fieldListSidebar.expandSidebarButton', {
defaultMessage: 'Show sidebar', defaultMessage: 'Show sidebar',
}), }),
iconType: 'menuRight', iconType: 'transitionLeftIn',
'data-test-subj': `${dataTestSubj}-expand`, 'data-test-subj': `${dataTestSubj}-expand`,
onClick: () => onChange(false), onClick: () => onChange(false),
}, },
@ -58,7 +57,7 @@ export const SidebarToggleButton: React.FC<SidebarToggleButtonProps> = ({
label: i18n.translate('unifiedFieldList.fieldListSidebar.collapseSidebarButton', { label: i18n.translate('unifiedFieldList.fieldListSidebar.collapseSidebarButton', {
defaultMessage: 'Hide sidebar', defaultMessage: 'Hide sidebar',
}), }),
iconType: 'menuLeft', iconType: 'transitionLeftOut',
'data-test-subj': `${dataTestSubj}-collapse`, 'data-test-subj': `${dataTestSubj}-collapse`,
onClick: () => onChange(true), onClick: () => onChange(true),
}, },