From 8a4ec3c62eda03c2c28a3df969760622b04be452 Mon Sep 17 00:00:00 2001 From: double beep <38133098+double-beep@users.noreply.github.com> Date: Sat, 7 Oct 2023 13:06:24 +0000 Subject: [PATCH] Address `.s-btn__primary` deprecation --- src/buttons/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buttons/index.ts b/src/buttons/index.ts index fcf6dda..6d8b5a3 100644 --- a/src/buttons/index.ts +++ b/src/buttons/index.ts @@ -1,6 +1,6 @@ import { Icons, StacksCommonOptions } from "../index"; -export type ButtonType = "outlined" | "link" | "filled" | "muted" +export type ButtonType = "outlined" | "link" | "muted" | "danger" | "dropdown" | "unset" | "link" | "facebook" | "google" | "github"; @@ -85,7 +85,7 @@ export const makeStacksButton = ( btn.setAttribute("aria-label", title || text); if (primary) { - btn.classList.add("s-btn__primary"); + btn.classList.add("s-btn__filled"); } if (loading) {