mirror of
https://github.com/jgthms/bulma
synced 2026-03-22 05:04:28 -07:00
Improving example of modular button classes
Links and buttons have different semantic html meanings, and it is somewhat of a design (and accessibility) anti-pattern to style links as a button
This commit is contained in:
@@ -31,21 +31,21 @@ breadcrumb:
|
|||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
|
|
||||||
{% capture buttons %}
|
{% capture buttons %}
|
||||||
<a class="button">
|
<button class="button">
|
||||||
Button
|
Button
|
||||||
</a>
|
</button>
|
||||||
|
|
||||||
<a class="button is-primary">
|
<button class="button is-primary">
|
||||||
Primary button
|
Primary button
|
||||||
</a>
|
</button>
|
||||||
|
|
||||||
<a class="button is-large">
|
<button class="button is-large">
|
||||||
Large button
|
Large button
|
||||||
</a>
|
</button>
|
||||||
|
|
||||||
<a class="button is-loading">
|
<button class="button is-loading">
|
||||||
Loading button
|
Loading button
|
||||||
</a>
|
</button>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
Reference in New Issue
Block a user