-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from joshbruce/buttons-actions-support-form
[Buttons, Actions, Support form]: Remove dependency on JS for code example
- Loading branch information
Showing
9 changed files
with
154 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% capture code_preview %} | ||
|
||
{% endcapture %} | ||
|
||
{% capture uikit-php %} | ||
... | ||
{% endcapture %} | ||
|
||
{% capture uikit-js %} | ||
... | ||
{% endcapture %} | ||
|
||
{% capture uikit-docs %} | ||
<h4 class="usa-heading">Support form</h4> | ||
<h5>Required keys</h5> | ||
|
||
<h5>Optional keys</h5> | ||
{% endcapture %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% capture code_preview %} | ||
|
||
{% endcapture %} | ||
|
||
{% capture uikit-php %} | ||
... | ||
{% endcapture %} | ||
|
||
{% capture uikit-js %} | ||
... | ||
{% endcapture %} | ||
|
||
{% capture uikit-docs %} | ||
<h4 class="usa-heading">Actions</h4> | ||
<h5>Required keys</h5> | ||
|
||
<h5>Optional keys</h5> | ||
{% endcapture %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{% capture code_preview %} | ||
<h6>Primary Button</h6> | ||
<div class="button_wrapper"> | ||
<button>Default</button> | ||
<button class="usa-button-active">Active</button> | ||
<button class="usa-button-hover">Hover</button> | ||
</div> | ||
|
||
<h6>Secondary Buttons</h6> | ||
<div class="button_wrapper"> | ||
<button class="usa-button-secondary">Default</button> | ||
<button class="usa-button-secondary usa-button-active">Active</button> | ||
<button class="usa-button-secondary usa-button-hover">Hover</button> | ||
</div> | ||
|
||
<div class="button_wrapper"> | ||
<button class="usa-button-outline" type="button">Default</button> | ||
<button class="usa-button-outline usa-button-active">Active</button> | ||
<button class="usa-button-outline usa-button-hover">Hover</button> | ||
</div> | ||
|
||
<div class="button_wrapper button_wrapper-dark"> | ||
<button class="usa-button-outline-inverse" type="button">Default</button> | ||
<button class="usa-button-outline-inverse usa-button-active">Active</button> | ||
<button class="usa-button-outline-inverse usa-button-hover">Hover</button> | ||
</div> | ||
|
||
<h6>Disabled Button</h6> | ||
<div class="button_wrapper"> | ||
<button class="usa-button-disabled">Default</button> | ||
</div> | ||
|
||
<h6>Button with cancel</h6> | ||
<div class="button_wrapper"> | ||
<a class="usa-cancel" href="#">cancel</a> <button>Cancel</button> | ||
</div> | ||
|
||
<h6>Dismiss Button</h6> | ||
<div class="button_wrapper"> | ||
<button class="usa-button-dismiss"><span class="usa-sr-only">Dismiss</span></button> | ||
</div> | ||
|
||
<h6>Button Focus</h6> | ||
<div class="button_wrapper"> | ||
<button class="usa-button-focus">Default</button> | ||
<button class="usa-button-primary-alt usa-button-focus">Default</button> | ||
<button class="usa-button-secondary usa-button-focus">Default</button> | ||
</div> | ||
{% endcapture %} | ||
|
||
{% capture uikit-php %} | ||
// render unescaped HTML string | ||
echo SAMUIKit\Other::button($config); | ||
{% endcapture %} | ||
|
||
{% capture uikit-js %} | ||
... | ||
{% endcapture %} | ||
|
||
{% capture uikit-docs %} | ||
<h4 class="usa-heading">Buttons</h4> | ||
<h5>Required keys</h5> | ||
<ul> | ||
<li><strong>title:</strong> The text to display within the button.</li> | ||
</ul> | ||
|
||
<h5>Optional keys</h5> | ||
<ul> | ||
<li><strong>type:</strong> primary|alt|secondary|gray|outline|outline-inverse|big|disabled (default is primary).</li> | ||
<li><strong>cancel:</strong> Anchor href target for the cancel link. Usually not necessary.</li> | ||
</ul> | ||
{% endcapture %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% capture code_preview %} | ||
|
||
{% endcapture %} | ||
|
||
{% capture uikit-php %} | ||
... | ||
{% endcapture %} | ||
|
||
{% capture uikit-js %} | ||
... | ||
{% endcapture %} | ||
|
||
{% capture uikit-docs %} | ||
<h4 class="usa-heading">Icons</h4> | ||
<h5>Required keys</h5> | ||
|
||
<h5>Optional keys</h5> | ||
{% endcapture %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.