more on button refactor (#388)

- Removed opacity for hover effect. Now uses a brighter variant of color
- Updated other Button usages
This commit is contained in:
Red J Adaya
2024-09-17 22:38:17 -07:00
committed by GitHub
parent f08bc8c768
commit dae72e7009
10 changed files with 111 additions and 108 deletions
+1 -15
View File
@@ -10,7 +10,6 @@ import "./modal.less";
interface ModalProps {
children?: React.ReactNode;
description?: string;
okLabel?: string;
cancelLabel?: string;
className?: string;
@@ -21,20 +20,7 @@ interface ModalProps {
}
const Modal = forwardRef<HTMLDivElement, ModalProps>(
(
{
children,
className,
description,
cancelLabel,
okLabel,
onCancel,
onOk,
onClose,
onClickBackdrop,
}: ModalProps,
ref
) => {
({ children, className, cancelLabel, okLabel, onCancel, onOk, onClose, onClickBackdrop }: ModalProps, ref) => {
const renderBackdrop = (onClick) => <div className="modal-backdrop" onClick={onClick}></div>;
const renderFooter = () => {
+2 -2
View File
@@ -117,7 +117,7 @@ const ModalPage1 = () => {
</div>
<footer className="unselectable">
<div className="button-wrapper">
<Button className="font-weight-600 primary" onClick={acceptTos}>
<Button className="font-weight-600" onClick={acceptTos}>
Continue
</Button>
</div>
@@ -146,7 +146,7 @@ const ModalPage2 = () => {
</div>
<footer className="unselectable">
<div className="button-wrapper">
<Button className="font-weight-600 primary" onClick={handleGetStarted}>
<Button className="font-weight-600" onClick={handleGetStarted}>
Get Started
</Button>
</div>
+1 -1
View File
@@ -66,7 +66,7 @@ const Suggestions = forwardRef<HTMLDivElement, SuggestionsProps>(
);
interface TypeAheadModalProps {
anchorRef: React.RefObject<HTMLDivElement>;
anchorRef: React.RefObject<HTMLElement>;
blockRef?: React.RefObject<HTMLDivElement>;
suggestions?: SuggestionsType[];
label?: string;