Skip to content

Commit

Permalink
Merge branch 'master' into fixContentSwitcherIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack authored Apr 12, 2019
2 parents 6f12207 + 9a1473f commit de8f984
Show file tree
Hide file tree
Showing 29 changed files with 2,979 additions and 2,337 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

.button .bx--btn {
margin-bottom: 0.5rem;
vertical-align: top;
}

.data-table > div {
Expand Down
13 changes: 13 additions & 0 deletions src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,19 @@
}
}

.#{$prefix}--btn--icon-only,
.#{$prefix}--btn--sm.#{$prefix}--btn--icon-only {
padding-right: rem(15px);

.#{$prefix}--btn__icon {
position: static;
}

&.#{$prefix}--btn--ghost .#{$prefix}--btn__icon {
margin: 0;
}
}

.#{$prefix}--btn--danger {
@include button-theme--x($support-01, $support-01, $text-04, $hover-danger, $icon-03, $active-danger);

Expand Down
14 changes: 13 additions & 1 deletion src/components/button/button.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,16 @@
<path d="M7 7H4v2h3v3h2V9h3V7H9V4H7v3zm1 9A8 8 0 1 1 8 0a8 8 0 0 1 0 16z" fill-rule="evenodd" />
</svg>
{{/if}}
</button>
</button>
<button
class="{{@root.prefix}}--btn {{@root.prefix}}--btn--{{variant}} {{@root.prefix}}--btn--icon-only{{#if small}} {{@root.prefix}}--btn--sm{{/if}}"
{{#if danger}} aria-label="danger" {{/if}} type="button">
{{#if @root.featureFlags.componentsX}}
{{ carbon-icon 'Add16' class=(add @root.prefix '--btn__icon') }}
{{else}}
<svg class="{{@root.prefix}}--btn__icon" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"
aria-hidden="true">
<path d="M7 7H4v2h3v3h2V9h3V7H9V4H7v3zm1 9A8 8 0 1 1 8 0a8 8 0 0 1 0 16z" fill-rule="evenodd" />
</svg>
{{/if}}
</button>
Loading

0 comments on commit de8f984

Please sign in to comment.