Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jeremy-farrance opened this issue Sep 9, 2023 · 0 comments

Comments

@jeremy-farrance
Copy link

jeremy-farrance commented Sep 9, 2023

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

<dnn-button id="linkToAccordion" href="/tabid/58" target="_blank" class="btn btn-outline-dark rounded-0 text-nowrap mb-1 mr-1">Go to the Accordion page</dnn-button>

Would result in:

<a class="btn btn-outline-dark rounded-0 text-nowrap mb-1 mr-1" href="/tabid/58" target="_blank" role="button">Go to the Accordion page</a>

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

<dnn-button id="buttonOptions" class="btn btn-dark rounded-0 text-nowrap mb-1 mr-1">Options</dnn-button>

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

@jeremy-farrance jeremy-farrance changed the title Enhancement Request: Ability to Generate a Link Instead Enhancement Request: Ability for dnn-button to Generate a Link Instead Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant