Skip to content

Commit

Permalink
Merge pull request #425 from Infineon/422-documentation-button-update
Browse files Browse the repository at this point in the history
Documentation: button update
  • Loading branch information
verena-ifx authored Aug 28, 2023
2 parents 5e42e69 + 8bfbb2d commit 32a52f8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions packages/components/src/components/button/Usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ Use for actions that are not as important as primary or secondary actions. The t
#### States
<img src={TertiaryButtonStates} alt="Tertiary Button States" />

### Error
Should be used for actions that result in a destructive action, such as deleting a record. The error button has a high-contrast, attention-grabbing style — try to limit its use per page as much as possible.
To make it easier for users to cancel a destructive action, it is recommended to include a secondary button alongside the error button on modal components. For instance, if a table is being deleted, users can use the "Cancel" button to close the modal.
### Danger
Should be used for actions that result in a destructive action, such as deleting a record. The danger button has a high-contrast, attention-grabbing style — try to limit its use per page as much as possible.
To make it easier for users to cancel a destructive action, it is recommended to include a secondary button alongside the danger button on modal components. For instance, if a table is being deleted, users can use the "Cancel" button to close the modal.
> A tertiary button variant for danger does not exist in our DDS.
<img src={ButtonVariantError} alt="Button Variant Error" />

Expand Down

0 comments on commit 32a52f8

Please sign in to comment.