Skip to content

Commit

Permalink
fix(button): adjust styles for info
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Feb 21, 2022
1 parent eb30609 commit 3a95df1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
22 changes: 19 additions & 3 deletions packages/components/src/components/bal-button/bal-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,18 @@ bal-button.is-fullwidth {
}

&.is-info.is-inverted.is-outlined {
svg g,
svg path,
svg circle {
fill: $white;
}

&:focus,
&.is-focused,
&:hover,
&.is-hovered {
&.is-hovered,
&:active,
&.is-active {
color: $white;
background: darken($blue, 10);
}
Expand All @@ -273,6 +283,12 @@ bal-button.is-fullwidth {
&.is-hovered {
color: $white;
background: $cyan;

svg g,
svg path,
svg circle {
fill: $white;
}
}
}

Expand Down Expand Up @@ -364,15 +380,15 @@ bal-button.is-fullwidth {
@include mobile() {
.field.is-grouped {
flex-wrap: wrap;
flex-direction: column-reverse;
flex-direction: column;

bal-button.control {
flex-grow: 1;
flex-shrink: 1;
min-width: 100%;
margin-right: 0 !important;

&:not(:first-child) {
&:not(:last-child) {
margin-bottom: 8px;
}
}
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/bal-button/bal-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ export class Button implements ComponentInterface {
if (this.outlined && !this.inverted) {
return false
}
if (this.inverted && this.color === 'info') {
return false
}
switch (this.color) {
case 'primary':
case 'success':
Expand Down

0 comments on commit 3a95df1

Please sign in to comment.