From 9a1d3d98bf866b97e9d9748cdad9e9159b4ef7d9 Mon Sep 17 00:00:00 2001 From: enes Date: Sat, 4 Jan 2025 19:28:30 +0100 Subject: [PATCH] feat: add minimal styling secondary button --- src/components/ButtonUnderline/index.tsx | 24 ++++++++++++++++++ .../ButtonUnderline/style.module.scss | 25 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src/components/ButtonUnderline/index.tsx create mode 100644 src/components/ButtonUnderline/style.module.scss diff --git a/src/components/ButtonUnderline/index.tsx b/src/components/ButtonUnderline/index.tsx new file mode 100644 index 0000000..510b2a9 --- /dev/null +++ b/src/components/ButtonUnderline/index.tsx @@ -0,0 +1,24 @@ +import { PropsWithChildren } from 'react' +import styles from './style.module.scss' + +interface ButtonUnderlineProps { + onClick: () => void + disabled?: boolean | undefined +} + +export const ButtonUnderline = ({ + onClick, + disabled = false, + children +}: PropsWithChildren) => { + return ( + + ) +} diff --git a/src/components/ButtonUnderline/style.module.scss b/src/components/ButtonUnderline/style.module.scss new file mode 100644 index 0000000..a357362 --- /dev/null +++ b/src/components/ButtonUnderline/style.module.scss @@ -0,0 +1,25 @@ +@import '../../styles/colors.scss'; + +.button { + color: $primary-main !important; + display: flex; + align-items: center; + justify-content: center; + gap: 12px; + + width: max-content; + margin: 0 auto; + + // Override default styling + border: none !important; + outline: none !important; + + // Override leaky css in sign page + background: transparent !important; + + &:focus, + &:hover { + text-decoration: underline; + text-decoration-color: inherit; + } +}