Skip to content

Commit

Permalink
fix: icon color when a ghost danger button is disabled (#624)
Browse files Browse the repository at this point in the history
* fix: icon color when a ghost danger button is disabled

* fix: story disabled in ghost danger icon button

---------

Co-authored-by: Iury Nogueira <[email protected]>
  • Loading branch information
jAllanOli and iurynogueira authored Apr 28, 2023
1 parent dacd084 commit afcb7fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ion/src/lib/button/button.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ button {

ion-icon {
::ng-deep svg {
fill: $neutral-5;
fill: $neutral-5 !important;
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions stories/Button.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,18 @@ E 6 outras propriedades adicionais.
template: `<ion-button label="Ghost" type="ghost" [disabled]=true></ion-button>`,
}}
</Story>
<Story
name="disabled in ghost danger icon button"
decorators={[
moduleMetadata({
imports: [CommonModule, IonSharedModule],
}),
]}
>
{{
template: `<ion-button label="Ghost" type="ghost" [danger]="true" iconType="close" [disabled]=true></ion-button>`,
}}
</Story>
<Story
name="disabled in dashed button"
decorators={[
Expand Down

0 comments on commit afcb7fc

Please sign in to comment.