mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
[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:
parent
b03b2fd477
commit
3550650a91
1 changed files with 2 additions and 3 deletions
|
@ -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),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue