Skip to content

Commit

Permalink
Adding secondary action to color tokens (#2324)
Browse files Browse the repository at this point in the history
Co-authored-by: Nida Ghuman <nidaqg@gmail.com>
  • Loading branch information
carloslimasd and nidaqg authored Mar 3, 2023
1 parent c20268d commit 17061f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions playbook/app/pb_kits/playbook/pb_button/_button_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ $pb_button_border_width: 0px;

// Secondary ====================
@mixin pb_button_secondary {
@include pb_button_variant(rgba($primary_action, 0.05), $primary_action);
@include pb_button_variant($secondary-action, $primary_action);

@media (hover:hover) {
&:hover {
@include pb_button_hover(rgba($primary_action, $opacity_3));
}
&:active {
transition: none;
@include pb_button_variant(rgba($primary_action, 0.05), $primary_action);
@include pb_button_variant($secondary-action, $primary_action);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $pb_button_styles: [
@mixin pb_circle_icon_button_active {
&:active {
transition: none;
@include pb_button_variant(rgba($primary_action, 0.05), $primary_action);
@include pb_button_variant($secondary-action, $primary_action);
}
}

Expand Down
2 changes: 2 additions & 0 deletions playbook/app/pb_kits/playbook/tokens/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ $card_colors: (
);

$primary-action: $primary !default;
$secondary-action: rgba($primary_action, 0.05) !default;

$action_colors: (
primary_action: $primary-action
);
Expand Down

0 comments on commit 17061f5

Please # to comment.