Skip to content

Commit

Permalink
Merge pull request #95 from hashicorp/move-important-information
Browse files Browse the repository at this point in the history
Update "Button" documentation
  • Loading branch information
didoo authored Mar 18, 2022
2 parents 8a29645 + 91f79a1 commit 541469c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
margin: 0;
}

p + p {
margin-top: 0.125rem;
}

ol {
display: flex;
flex-wrap: wrap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<dt>icon <code>string</code></dt>
<dd>
<p>Use this parameter to show an icon. Acceptable value: any Flight icon name.</p>
<p><strong>🚨 IMPORTANT:</strong>
<code class="dummy-code">tertiary</code>
buttons are required to have either a leading or trailing icon to be accessible.</p>

</dd>
<dt>iconPosition <code>enum</code></dt>
<dd>
Expand Down Expand Up @@ -112,9 +116,6 @@
{{! prettier-ignore-end }}
<p class="dummy-paragraph">Renders to:</p>
<Hds::Button @text="Copy to clipboard" @icon="clipboard-copy" />
<p class="dummy-paragraph"><strong>🚨 IMPORTANT:</strong>
<code class="dummy-code">tertiary</code>
buttons are required to have either a leading or trailing icon to be accessible.</p>

<h4 class="dummy-h4">Icon position</h4>
<p class="dummy-paragraph">By default, if you define an icon, it is placed before the text. If you would like to
Expand Down

2 comments on commit 541469c

@vercel
Copy link

@vercel vercel bot commented on 541469c Mar 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 541469c Mar 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.