Skip to content

Consider improving visibility of “Reset” button in code examples #4822

@mrosvik

Description

@mrosvik

Description:
In the code examples, the “Reset” button should not be visible when no changes have been made. Currently, it is always displayed, which can be misleading and unnecessary.

Additionally, the “Reset” functionality is only relevant for React examples. Showing the button in all contexts creates confusion, especially for users viewing non-React examples.

Expected behaviour:
The “Reset” button is only shown after the user has made changes
The button is only present in React-specific examples where it is relevant

Why this matters:
This will improve clarity and reduce confusion, making the examples easier to understand and more context-aware.

Metadata

Metadata

Assignees

Labels

documentation/codeFor documentation related to code and technical specifications🖥️ wwwdesignsystemet.no

Type

No type

Projects

Status

🏁 Monday commitments

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions