spectre icon indicating copy to clipboard operation
spectre copied to clipboard

Unexpected behavior with class .btn on anchor elements

Open Acmion opened this issue 5 years ago • 2 comments

Often buttons are used with the anchor tag like this: <a href="www" class="btn">Click Me</a>

However, buttons of this type will unexpectedly be affected by the styling of at least a:visited.

The visual state of button elements should not change, except by explicit user action.

For example, the "Install Spectre.css" button in the introduction section on https://picturepan2.github.io/spectre/ is affected by this

Acmion avatar May 24 '20 03:05 Acmion

I think pull request #572 addresses this issue, but unfortunately the project maintainer still hasn't merged it.

vpalos avatar May 25 '20 06:05 vpalos

Nice find!

Acmion avatar May 27 '20 05:05 Acmion