I'm developing angular applications, therefore I'm not using href as an attribute. This causes that the color for primary buttons is black instead of white! Reproduce it like this: <a class="btn btn-primary">Click me</a>


An <a> tag without an href is not presented to screen reader users as a link (or button for that matter). <a> tags without an href are also not in the document tab sequence by default, making them inaccessible to keyboard only users.
I would recommend setting href="#" or switching to a more semantic markup such as <button> which will make your site usable for users of assistive technologies
thanks!
Most helpful comment
An
<a>tag without anhrefis not presented to screen reader users as a link (or button for that matter).<a>tags without anhrefare also not in the document tab sequence by default, making them inaccessible to keyboard only users.I would recommend setting
href="#"or switching to a more semantic markup such as<button>which will make your site usable for users of assistive technologies