Skip to content

Commit

Permalink
Make secondary button have a white background instead of being
Browse files Browse the repository at this point in the history
transparent
  • Loading branch information
Jonas-C committed Jul 10, 2024
1 parent 65d11f2 commit 2046f5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/primitives/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { RecipeVariantProps, css, cva } from "@ndla/styled-system/css";
import { styled } from "@ndla/styled-system/jsx";
import { JsxStyleProps, RecipeVariant } from "@ndla/styled-system/types";

// TODO: Consider if any of the backgrounds should actually be transparent
export const buttonBaseRecipe = cva({
base: {
display: "inline-flex",
Expand Down Expand Up @@ -68,7 +69,7 @@ export const buttonBaseRecipe = cva({
},
secondary: {
color: "text.strong",
background: "transparent",
background: "surface.default",
boxShadow: "inset 0 0 0 1px var(--shadow-color)",
_hover: {
background: "surface.actionSubtle.hover",
Expand Down

0 comments on commit 2046f5f

Please sign in to comment.