Skip to content

Commit

Permalink
fix: add correct titles to list item buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
roar-larsen committed Jul 13, 2023
1 parent cc1cdfc commit bb94ccc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/dm-core-plugins/src/list/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const ListItemButton = (props: {
up: chevron_up,
down: chevron_down,
}
const iconTitle =
type === 'up' ? 'Move up' : type === 'down' ? 'Move Down' : 'Delete'
return (
<EdsProvider density="compact">
<Button
Expand All @@ -44,7 +46,7 @@ export const ListItemButton = (props: {
variant="ghost_icon"
onClick={props.onClick}
>
<Icon data={ICONS[type]} title="Move up" />
<Icon data={ICONS[type]} title={iconTitle} />
</Button>
</EdsProvider>
)
Expand Down

0 comments on commit bb94ccc

Please sign in to comment.