DNNCommunity / DNNCommunity/dnn-elements

Enhancement Request: Ability for dnn-button to Generate a Link Instead

Open
#819 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
19
Forks
9
PR merge metrics
No merged PRs in 30d

Description

There are usability situations where a button should look like a button but actually be a link (HTML A tag).

I was thinking that it could be a simple switch, IF there is an href attribute, then emit an instead of .

Example
```
Go to the Accordion page
```

Would result in:
```
Go to the Accordion page
```

But the important thing is that the result look identical to the similarly crafted button:
```
Options
```

Here is an example where the Link is outline and the Button is not and otherwise they follow the same style and can be used together in a UI.
![image](https://github.com/DNNCommunity/dnn-elements/assets/653301/c8d27180-78d8-4ed3-9a9f-5a4c46bed8c4)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.