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

Html.Bootstrap().Link is defaulting its style to Default instead of None #450

Open
johnwc opened this issue Mar 16, 2017 · 3 comments
Open

Comments

@johnwc
Copy link

johnwc commented Mar 16, 2017

@Html.Bootstrap().Link("Test", "Test")
This produces <a class="btn-default">Test</a>, expected to produce <a>Test</a> with no class.

@DmitryEfimenko
Copy link
Owner

This is a Bootstrap library, which is why when using its helpers it applies Bootstrap specific classes to elements. The whole purpose of it is to use default Bootstrap specific html when using MVC helpers. Please use regular Html helpers in other situations.

@johnwc
Copy link
Author

johnwc commented Mar 16, 2017

No where does bootstrap say that a link defaults to a button, it's a option to enable it as such if you choose.

This was never the case prior to updating to the latest version of your library. All my links now look horrible and I am being forced to go through every single page to add the style as none. Why did it get changed from none to button?

@johnwc
Copy link
Author

johnwc commented Mar 16, 2017

Also, I need to use your framework to add other bootstrap items to this, like Prepending a icon and setting a Tooltip. Those options aren't available to the "regular" Html helpers.

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

2 participants