button component: introduces button-ghost dedicated styles
This commit is contained in:
committed by
Johannes Kirschbauer
parent
dfbb860898
commit
16256440e6
@@ -0,0 +1,11 @@
|
|||||||
|
.button--ghost-hover:hover {
|
||||||
|
@apply hover:bg-secondary-100 hover:text-secondary-900;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button--ghost-focus:focus {
|
||||||
|
@apply focus:bg-secondary-200 focus:text-secondary-900;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button--ghost-active:active {
|
||||||
|
@apply active:bg-secondary-200 active:text-secondary-900 active:shadow-inner-primary-active;
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
@import "./button-light.css";
|
@import "./button-light.css";
|
||||||
@import "./button-dark.css";
|
@import "./button-dark.css";
|
||||||
|
@import "./button-ghost.css";
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
@apply inline-flex items-center flex-shrink gap-1 justify-center p-4 font-semibold;
|
@apply inline-flex items-center flex-shrink gap-1 justify-center p-4 font-semibold;
|
||||||
|
|||||||
@@ -26,10 +26,9 @@ const variantColors: (
|
|||||||
!disabled && "button--light-active", // Active state
|
!disabled && "button--light-active", // Active state
|
||||||
),
|
),
|
||||||
ghost: cx(
|
ghost: cx(
|
||||||
// "shadow-inner-secondary",
|
!disabled && "button--ghost-hover", // Hover state
|
||||||
!disabled && "hover:bg-secondary-200 hover:text-secondary-900", // Hover state
|
!disabled && "button--ghost-focus", // Focus state
|
||||||
!disabled && "focus:bg-secondary-200 focus:text-secondary-900", // Focus state
|
!disabled && "button--ghost-active", // Active state
|
||||||
!disabled && "button--light-active", // Active state
|
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user