Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into EC-457-component-li…
Browse files Browse the repository at this point in the history
…brary-icon-buttons
  • Loading branch information
coroiu committed Sep 13, 2022
2 parents d0d687c + a4ef63d commit 5962fe9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE_BITWARDEN.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ entity on behalf of whom you are acting (as applicable, "You" or "Your").

1. DEFINITIONS

"Bitwarden Software" means the Bitwarden server software, libraries, and
"Bitwarden Software" means the Bitwarden client software, libraries, and
Commercial Modules.

"Commercial Modules" means the modules designed to work with and enhance the
Expand Down
13 changes: 10 additions & 3 deletions libs/components/src/button/button.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const buttonStyles: Record<ButtonTypes, string[]> = {
"!tw-text-contrast",
"hover:tw-bg-primary-700",
"hover:tw-border-primary-700",
"disabled:tw-bg-primary-500/60",
"disabled:tw-border-primary-500/60",
"disabled:!tw-text-contrast/60",
"disabled:tw-bg-clip-padding",
],
secondary: [
"tw-bg-transparent",
Expand All @@ -17,6 +21,9 @@ const buttonStyles: Record<ButtonTypes, string[]> = {
"hover:tw-bg-secondary-500",
"hover:tw-border-secondary-500",
"hover:!tw-text-contrast",
"disabled:tw-bg-transparent",
"disabled:tw-border-text-muted/60",
"disabled:!tw-text-muted/60",
],
danger: [
"tw-bg-transparent",
Expand All @@ -25,6 +32,9 @@ const buttonStyles: Record<ButtonTypes, string[]> = {
"hover:tw-bg-danger-500",
"hover:tw-border-danger-500",
"hover:!tw-text-contrast",
"disabled:tw-bg-transparent",
"disabled:tw-border-danger-500/60",
"disabled:!tw-text-danger/60",
],
};

Expand All @@ -43,9 +53,6 @@ export class ButtonDirective {
"tw-border-solid",
"tw-text-center",
"hover:tw-no-underline",
"disabled:tw-bg-secondary-100",
"disabled:tw-border-secondary-100",
"disabled:!tw-text-main",
"focus:tw-outline-none",
"focus-visible:tw-ring",
"focus-visible:tw-ring-offset-2",
Expand Down

0 comments on commit 5962fe9

Please sign in to comment.