Skip to content

Commit

Permalink
fix(HAWNG-514): Change icons for Collapse and Expand to links
Browse files Browse the repository at this point in the history
  • Loading branch information
mmelko authored and tadayosi committed Feb 28, 2024
1 parent 83b0e2f commit be16ff4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/hawtio/src/plugins/shared/PluginTreeViewToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
Tooltip,
TreeViewSearch,
} from '@patternfly/react-core'
import { MinusIcon, PlusIcon } from '@patternfly/react-icons'

interface ToolbarProps {
onSearch: (event: ChangeEvent<HTMLInputElement>) => void
Expand Down Expand Up @@ -47,8 +46,8 @@ export const PluginTreeViewToolbar: React.FunctionComponent<ToolbarProps> = (pro
</ToolbarItem>
<ToolbarItem variant='expand-all'>
<Tooltip content={expanded ? 'Collapse all' : 'Expand all'} removeFindDomNode>
<Button variant='plain' aria-label='Expand Collapse' onClick={toggleExpanded}>
{expanded ? <MinusIcon /> : <PlusIcon />}
<Button variant='link' aria-label='Expand Collapse' onClick={toggleExpanded}>
{expanded ? 'Collapse all' : 'Expand all'}
</Button>
</Tooltip>
</ToolbarItem>
Expand Down

0 comments on commit be16ff4

Please sign in to comment.