picturepan2 / spectre

Spectre.css - A Lightweight, Responsive and Modern CSS Framework
https://picturepan2.github.io/spectre/
MIT License
11.32k stars 807 forks source link

Unexpected behavior with class .btn on anchor elements #628

Open Acmion opened 4 years ago

Acmion commented 4 years ago

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

vpalos commented 4 years ago

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

Acmion commented 4 years ago

Nice find!