Skip to content

Commit

Permalink
docs: allow small primary buttons (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar authored Oct 9, 2023
1 parent 3ad8332 commit a556416
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions src/lib/_imports/components/c-button/c-button.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@
{{#if disabled}}disabled{{/if}}>
<span class="c-button__text">--secondary</span>
</button>
{{#if small}}
<small>(no small primary allowed)</small>
{{else}}
<button class="c-button c-button--{{this._self.name}} c-button--primary"
{{#if disabled}}disabled{{/if}}>
<span class="c-button__text">--primary</span>
</button>
{{/if}}
<button class="c-button c-button--{{this._self.name}} c-button--primary"
{{#if disabled}}disabled{{/if}}>
<span class="c-button__text">--primary</span>
</button>
<button class="c-button c-button--{{this._self.name}} c-button--tertiary"
{{#if disabled}}disabled{{/if}}>
<span class="c-button__text">--tertiary</span>
Expand All @@ -29,14 +25,10 @@
{{#if disabled}}disabled tabindex="-1"{{/if}}>
<span class="c-button__text">--secondary</span>
</a>
{{#if small}}
<small>(no small primary allowed)</small>
{{else}}
<a href="#" class="c-button c-button--{{this._self.name}} c-button--primary"
{{#if disabled}}disabled tabindex="-1"{{/if}}>
<span class="c-button__text">--primary</span>
</a>
{{/if}}
<a href="#" class="c-button c-button--{{this._self.name}} c-button--primary"
{{#if disabled}}disabled tabindex="-1"{{/if}}>
<span class="c-button__text">--primary</span>
</a>
<a href="#" class="c-button c-button--{{this._self.name}} c-button--tertiary"
{{#if disabled}}disabled tabindex="-1"{{/if}}>
<span class="c-button__text">--tertiary</span>
Expand Down

0 comments on commit a556416

Please sign in to comment.