1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-06 00:03:29 +00:00

Updated hover/focus states as requested

This commit is contained in:
Vincent Salucci
2022-05-31 13:33:34 -05:00
parent 709b7c7f5f
commit e1eabbfdd4
2 changed files with 9 additions and 4 deletions

View File

@@ -28,15 +28,14 @@ export class TabItemComponent {
"tw-cursor-pointer",
"tw-box-border", // Necessary? - compounds final width/height of tab to include borders
"tw-text-main",
"hover:tw-border-t-4",
"hover:tw-border-t-secondary-700",
"hover:tw-no-underline",
"focus:tw-border-t-secondary-700",
"hover:tw-underline",
"focus:tw-underline",
"focus:tw-outline-none",
"focus:tw-ring-2",
"focus:tw-ring-primary-700",
"disabled:tw-bg-secondary-100",
"disabled:tw-text-muted",
"disabled:tw-no-underline",
"disabled:tw-border-t-transparent",
"disabled:tw-cursor-not-allowed",
].join(" ");
@@ -49,6 +48,11 @@ export class TabItemComponent {
"tw-border-t-primary-500",
"tw-border-b-transparent",
"tw-text-primary-500",
"hover:tw-border-t-primary-700",
"hover:tw-text-primary-700",
"focus:tw-border-t-primary-700",
"focus:tw-text-primary-700",
"focus:tw-underline",
].join(" ");
}
}

View File

@@ -61,6 +61,7 @@ module.exports = {
primary: {
300: "var(--color-primary-300)",
500: "var(--color-primary-500)",
700: "var(--color-primary-700)",
},
},
ringOffsetColor: ({ theme }) => ({