Add tooltip to instances of IconButton (#68880)

* refactor: tooltip is required

* refactor: add tooltips

* refactor: add tooltips

* refactor: add tooltips

* refactor: add tooltips

* refactor: add tooltips

* refactor: add tooltips

* refactor: adjust tests

* refactor: apply changes from code review

* refactor: adjust component for e2e test

* refactor: adjust fallback

* refactor: apply changes from code review

* refactor: apply changes from code review

* refactor: set IconButton default as type=button and remove from use cases

* refactor:  remove aria-labels when duplicated and type=button from use cases

* refactor: clean up

* refactor: fix tests

* refactor: fix type errors

* refactor: remove changes in order in order to add them to a separate PR

* refactor: set IconButton default as type=button

* refactor: remove tooltip

* refactor: apply changes requested in review
This commit is contained in:
Laura Benz
2023-06-08 10:23:28 +02:00
committed by GitHub
parent c826739ee8
commit 24502c4c4a
71 changed files with 191 additions and 184 deletions

View File

@@ -73,15 +73,17 @@ export const TreeNodeTitle = ({ settings, nodeData, setAllowSelection }: Props)
<div className={styles.actionButtonsWrapper}>
<IconButton
name="copy"
title={'Duplicate'}
title="Duplicate"
className={styles.actionIcon}
onClick={() => onDuplicate(element)}
tooltip="Duplicate"
/>
<IconButton
name="trash-alt"
title={'remove'}
title="remove"
className={styles.actionIcon}
onClick={() => onDelete(element)}
tooltip="Remove"
/>
</div>
)}