Skip to content

Commit

Permalink
Revert the white success icon for buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
bartaz committed Apr 9, 2024
1 parent c62cd3d commit 711ede5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
6 changes: 5 additions & 1 deletion scss/_base_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@
// stylelint-enable selector-max-type
}

// FIXME: buttons are using a custom version of success icon that is not themed
// this should ideally be replaced with a themed icon that uses text colour
%vf-button-white-success-icon {
// deprecated, is not needed anymore with new theming
& .p-icon--success {
@include vf-icon-success($color-x-light, $color-transparent);
}
}

%vf-button-has-icon {
Expand Down
12 changes: 0 additions & 12 deletions scss/_base_themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,6 @@
.is-paper {
@include vf-theme-paper;
}

%vf-theme-light {
@include vf-theme-light;
}

%vf-theme-paper {
@include vf-theme-paper;
}

%vf-theme-dark {
@include vf-theme-dark;
}
}
}

Expand Down
6 changes: 4 additions & 2 deletions scss/_patterns_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@
&.is-dark {
@extend %p-button--brand-dark;
}

@extend %vf-button-white-success-icon;
}
}

@mixin vf-button-positive {
.p-button--positive {
@extend %vf-button-base;
@extend %vf-theme-dark;
@extend %vf-button-white-success-icon;

@include vf-button-pattern(
$button-background-color: $colors--theme--button-positive-default,
Expand All @@ -85,7 +87,7 @@
@mixin vf-button-negative {
.p-button--negative {
@extend %vf-button-base;
@extend %vf-theme-dark;
@extend %vf-button-white-success-icon;

@include vf-button-pattern(
$button-background-color: $colors--theme--button-negative-default,
Expand Down

0 comments on commit 711ede5

Please sign in to comment.