`s don’t support the disabled attribute, so you must add the `.disabled` class to make it visually appear disabled.
+
{% example html wrapper=btn-list %}
{% for button in site.button-variants %}
-{% include_cached ui/button.html color=button.1.class text=button.title disabled=true %}
+{% assign btn-color = button[1].class %}
+{% assign btn-title = button[1].title %}
+{% include_cached ui/button.html color=btn-color text=btn-title disabled=true %}
{% endfor %}
-
{% endexample %}
@@ -55,7 +59,9 @@ Add `.btn-square` to button to remove border-radius.
{% example html wrapper=btn-list %}
{% for button in site.button-variants %}
-{% include_cached ui/button.html text=button.title color=button.class square=true %}
+{% assign btn-color = button[1].class %}
+{% assign btn-title = button[1].title %}
+{% include_cached ui/button.html color=btn-color text=btn-title square=true %}
{% endfor %}
{% endexample %}
@@ -65,7 +71,9 @@ Add `.btn-pill` class to any button to make them more rounded.
{% example html wrapper=btn-list %}
{% for button in site.button-variants %}
-{% include_cached ui/button.html text=button.title color=button.class pill=true %}
+{% assign btn-color = button[1].class %}
+{% assign btn-title = button[1].title %}
+{% include_cached ui/button.html color=btn-color text=btn-title pill=true %}
{% endfor %}
{% endexample %}
@@ -75,7 +83,9 @@ In need of a button, but not the hefty background colors they bring? Replace the
{% example html wrapper=btn-list %}
{% for button in site.button-variants %}
-{% include_cached ui/button.html text=button.title color=button.class outline=true %}
+{% assign btn-color = button[1].class %}
+{% assign btn-title = button[1].title %}
+{% include_cached ui/button.html text=btn-title color=btn-color outline=true %}
{% endfor %}
{% endexample %}
@@ -104,13 +114,33 @@ Create block level buttons—those that span the full width of a parent—by add
Basic buttons are traditional buttons with borders and background with an extra commponent like an icon. You can place it either on the left or the right which ever you want with different color opitons.
+Icons can be found [**here** {% include_cached ui/icon.html icon="search" class="icon-sm" %}](/docs/icons.html#icons)
+
{% example html wrapper=btn-list %}
- Upload
- I like
- I agree
- More
- Link
- Comment
+
+{% include_cached ui/icon.html icon="upload" class="icon-sm" %}
+Upload
+
+
+{% include_cached ui/icon.html icon="heart" class="icon-sm" %}
+I like
+
+
+{% include_cached ui/icon.html icon="check" class="icon-sm" %}
+I agree
+
+
+{% include_cached ui/icon.html icon="plus" class="icon-sm" %}
+More
+
+
+{% include_cached ui/icon.html icon="link" class="icon-sm" %}
+Link
+
+
+{% include_cached ui/icon.html icon="message-circle" class="icon-sm" %}
+Comment
+
{% endexample %}
### Social buttons
@@ -119,7 +149,10 @@ A button can be formatted to link to a social website
{% example html wrapper=btn-list %}
{% for button in site.socials %}
-{% include_cached ui/button.html color=button.name icon=button.icon text=button.title %}
+{% assign btn-icon = button[1].icon %}
+{% assign btn-title = button[1].title %}
+{% assign btn-color = button[0] %}
+{% include_cached ui/button.html color=btn-color icon=btn-icon text=btn-title %}
{% endfor %}
{% endexample %}
@@ -127,7 +160,9 @@ You can use only icons.
{% example html wrapper=btn-list %}
{% for button in site.socials %}
-{% include_cached ui/button.html color=button.name icon=button.icon %}
+{% assign btn-icon = button[1].icon %}
+{% assign btn-color = button[0] %}
+{% include_cached ui/button.html color=btn-color icon=btn-icon icon-only=true %}
{% endfor %}
{% endexample %}
@@ -136,13 +171,27 @@ You can use only icons.
Icon only button. Add `.btn-icon` class to remove unnecessary padding from button.
{% example html wrapper=btn-list %}
-
-
-
-
-
-
-
+
+{% include_cached ui/icon.html icon="activity" class="icon-sm" %}
+
+
+{% include_cached ui/icon.html icon="github" class="icon-sm" %}
+
+
+{% include_cached ui/icon.html icon="bell" class="icon-sm" %}
+
+
+{% include_cached ui/icon.html icon="star" class="icon-sm" %}
+
+
+{% include_cached ui/icon.html icon="trash-2" class="icon-sm" %}
+
+
+{% include_cached ui/icon.html icon="bar-chart" class="icon-sm" %}
+
+
+{% include_cached ui/icon.html icon="git-merge" class="icon-sm" %}
+
{% endexample %}
### Button dropdown
@@ -152,7 +201,7 @@ Wrap the dropdown’s toggle (your button or link) and the dropdown menu within
{% example html wrapper=btn-list %}
-
+ {% include_cached ui/icon.html icon="calendar" class="icon-sm" %}