muicss / mui

Lightweight CSS framework
https://www.muicss.com
Other
4.51k stars 426 forks source link

Button click doesn't work on v0.9.7 (ok on v0.9.3) #191

Closed htmlgames closed 7 years ago

htmlgames commented 7 years ago

Hi, I changed my refs for the css and js to 0.9.7 and the buttons css is ok, plus the button press effect works. However it doesn't take me to the link using this version:

example link code

<button class="mui-btn mui-btn--raised"><a href="https://htmlgames.github.io/htmlgames/differences/UAT/itchy/index.html">phosphorus++</a></button>

Anything I need to add between the 2 versions ?

p.s. I'm using the latest version of 64bit Chrome on Windows 10

amorey commented 7 years ago

I think the problem is that there's an <a> inside a <button>. Try this instead:

<a class="mui-btn mui-btn--raised" href="https://htmlgames.github.io/htmlgames/differences/UAT/itchy/index.html">phosphorus++</a>
htmlgames commented 7 years ago

Thank you! that worked.

amorey commented 7 years ago

Great! Let me know if you run into any other problems.