picturepan2 / spectre

Spectre.css - A Lightweight, Responsive and Modern CSS Framework

Home Page:https://picturepan2.github.io/spectre/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected behavior with class .btn on anchor elements

Acmion opened this issue · 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

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

Nice find!