From 4f7c257246d188a5467f465f0d91f296f83a66ed Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Tue, 2 Aug 2022 11:41:30 +0200 Subject: [PATCH] Add class that capitalizes whole text, and one for just the first letter This is not anything wew have a specific task for, but we decided that it is a useful utility class that we would like to use for our buttons. --- src/stories/Library/Buttons/button/Button.tsx | 4 +++- src/stories/Library/material-header/MaterialHeader.tsx | 2 ++ src/styles/scss/shared.scss | 8 ++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/stories/Library/Buttons/button/Button.tsx b/src/stories/Library/Buttons/button/Button.tsx index dde5307b1..110103c83 100644 --- a/src/stories/Library/Buttons/button/Button.tsx +++ b/src/stories/Library/Buttons/button/Button.tsx @@ -8,6 +8,7 @@ export type ButtonProps = { size: "large" | "medium" | "small" | "xsmall"; variant: "outline" | "filled"; onClick?: () => void; + classNames?: string; }; export const Button: React.FC = ({ @@ -18,6 +19,7 @@ export const Button: React.FC = ({ size, variant, onClick, + classNames, }) => { const iconClassName = `btn-icon ${collapsible ? "btn-collapsible" : ""}`; @@ -62,7 +64,7 @@ export const Button: React.FC = ({ return (