## Coloring
-Badges can be colored with the same classes used for buttons and other components.
+Add color classes to give badges additional meaning. These classes are generated by the keys in the `$foundation-palette` map in your settings file. Each badge's text color is determined by either `$badge-color` or `$badge-color-alt`, whichever settings variable has more contrast.
+
+<div class="primary callout">
+ <p>The default settings meet WCAG 2.0 level AA contrast requirements. Be sure to [check the contrast](http://webaim.org/resources/contrastchecker/) when changing color variables. To give all badges the same color text, set `$badge-color` and `$badge-color-alt` to the same value — but know that doing so may decrease accessibility.</p>
+</div>
```html_example
-<span class="secondary badge">2</span>
-<span class="success badge">3</span>
-<span class="alert badge">A</span>
-<span class="warning badge">B</span>
+<span class="badge">1</span>
+<span class="badge secondary">2</span>
+<span class="badge success">3</span>
+<span class="badge alert">A</span>
+<span class="badge warning">B</span>
```
---
An icon can be used in place of text. We're using the [Foundation icon font](http://zurb.com/playground/foundation-icon-fonts-3) here, but any icon fonts or image-based icons will work fine.
```html_example
-<span class="secondary badge"><i class="fi-share"></i></span>
-<span class="success badge"><i class="fi-check"></i></span>
-<span class="warning badge"><i class="fi-wrench"></i></span>
+<span class="badge secondary"><i class="fi-share"></i></span>
+<span class="badge success"><i class="fi-check"></i></span>
+<span class="badge warning"><i class="fi-wrench"></i></span>
```
Additional classes can be added to your button to change its size and shape.
```html_example
-<a class="tiny button" href="#">So Tiny</a>
-<a class="small button" href="#">So Small</a>
+<a class="button tiny" href="#">So Tiny</a>
+<a class="button small" href="#">So Small</a>
<a class="button" href="#">So Basic</a>
-<a class="large button" href="#">So Large</a>
-<a class="expanded button" href="#">Such Expand</a>
-<a class="small expanded button" href="#">Wow, Small Expand</a>
+<a class="button large" href="#">So Large</a>
+<a class="button expanded" href="#">Such Expand</a>
+<a class="button small expanded" href="#">Wow, Small Expand</a>
```
---
## Coloring
-Give a button additional meaning by adding a coloring class, or `.disabled` to create a faded appearance.
+Add color classes to give buttons additional meaning. These classes are generated by the keys in the `$foundation-palette` map in your settings file. Each button's text color is determined by either `$button-color` or `$button-color-alt`, whichever settings variable has more contrast.
+
+<div class="primary callout">
+ <p>The default settings meet WCAG 2.0 level AA contrast requirements. Be sure to [check the contrast](http://webaim.org/resources/contrastchecker/) when changing color variables. To give all buttons the same color text, set `$button-color` and `$button-color-alt` to the same value — but know that doing so may decrease accessibility.</p>
+</div>
+
+The `.disabled` class will give buttons a faded appearance.
<div class="primary callout">
<p>The <code>.disabled</code> class is a purely visual style, and won't actually disable a control. For <code><button></code> elements, you can add the <code>disabled</code> attribute to disable it. If you want to disable a link, you should add the `aria-disabled` attribute to mark it as disabled for assistive technology.</p>
```html_example
<a class="button" href="#">Primary</a>
-<a class="secondary button" href="#">Secondary</a>
-<a class="success button" href="#">Success</a>
-<a class="alert button" href="#">Alert</a>
-<a class="warning button" href="#">Warning</a>
-<a class="disabled button" href="#">Disabled</a>
+<a class="button secondary" href="#">Secondary</a>
+<a class="button success" href="#">Success</a>
+<a class="button alert" href="#">Alert</a>
+<a class="button warning" href="#">Warning</a>
+<a class="button disabled" href="#">Disabled</a>
```
---
Add the `.hollow` class to a button to give it a hollow style. Change the `$button-fill` variable in your settings file to `hollow` to make this the default style. Changing this setting will remove the `.hollow` class from your CSS.
```html_example
-<button class="hollow button" href="#">Primary Color</button>
-<button class="secondary hollow button" href="#">Secondary Color</button>
-<button class="success hollow button" href="#">Success Color</button>
-<button class="alert hollow button" href="#">Alert Color</button>
-<button class="warning hollow button" href="#">Warning Color</button>
+<button class="hollow button" href="#">Primary</button>
+<button class="hollow button secondary" href="#">Secondary</button>
+<button class="hollow button success" href="#">Success</button>
+<button class="hollow button alert" href="#">Alert</button>
+<button class="hollow button warning" href="#">Warning</button>
+<button class="hollow button" href="#" disabled>Disabled</button>
```
---
</div>
```html_example
-<button class="tiny dropdown button">Dropdown Button</button>
-<button class="small dropdown button">Dropdown Button</button>
+<button class="dropdown button tiny ">Dropdown Button</button>
+<button class="dropdown button small ">Dropdown Button</button>
<button class="dropdown button">Dropdown Button</button>
-<button class="large dropdown button">Dropdown Button</button>
-<button class="expanded dropdown button">Dropdown Button</button>
+<button class="dropdown button large ">Dropdown Button</button>
+<button class="dropdown button expanded ">Dropdown Button</button>
```
---
## Coloring
-Labels can be colored with the same classes used for buttons and other components.
+Add color classes to give labels additional meaning. These classes are generated by the keys in the `$foundation-palette` map in your settings file. Each label's text color is determined by either `$label-color` or `$label-color-alt`, whichever settings variable has more contrast.
+
+<div class="primary callout">
+ <p>The default settings meet WCAG 2.0 level AA contrast requirements. Be sure to [check the contrast](http://webaim.org/resources/contrastchecker/) when changing color variables. To give all labels the same color text, set `$label-color` and `$label-color-alt` to the same value — but know that doing so may decrease accessibility.</p>
+</div>
```html_example
-<span class="secondary label">Secondary Label</span>
-<span class="success label">Success Label</span>
-<span class="alert label">Alert Label</span>
-<span class="warning label">Warning Label</span>
+<span class="label">Primary Label</span>
+<span class="label secondary">Secondary Label</span>
+<span class="label success">Success Label</span>
+<span class="label alert">Alert Label</span>
+<span class="label warning">Warning Label</span>
```
---
An icon can be dropped into a label just fine. We're using the [Foundation icon font](http://zurb.com/playground/foundation-icon-fonts-3) here, but any icon fonts or image-based icons will work fine.
```html_example
-<span class="alert label"><i class="fi-x-circle"></i> Alert Label</span>
-<span class="warning label"><i class="fi-x"></i> Warning Label</span>
-<span class="info label"><i class="fi-widget"></i> Info Label</span>
+<span class="label alert"><i class="fi-x-circle"></i> Alert Label</span>
+<span class="label warning"><i class="fi-x"></i> Warning Label</span>
+<span class="label info"><i class="fi-widget"></i> Info Label</span>
```