diff --git a/components/design-system/Button.jsx b/components/atoms/DSButton.js similarity index 68% rename from components/design-system/Button.jsx rename to components/atoms/DSButton.js index 65eaeb3d84..e5cf722d72 100644 --- a/components/design-system/Button.jsx +++ b/components/atoms/DSButton.js @@ -1,11 +1,37 @@ import PropTypes from "prop-types"; import { Image } from "./Image"; -export function Button(props) { - const style = "btn-" + props.styling; +// Button used in HelpIcon.js and CTA.js +// Use ActionButton.js for all other buttons in the app +export function DSButton(props) { + //Styling for buttons and links + const PRIMARY = + "text-multi-neutrals-white bg-multi-blue-blue70 hover:bg-multi-blue-blue60g focus:bg-multi-blue-blue60g"; + const SECONDARY = + "text-multi-blue-blue60b bg-multi-neutrals-grey30a hover:bg-multi-neutrals-grey50a focus:bg-multi-neutrals-grey60"; + const SUPERTASK = + "text-multi-neutrals-white bg-specific-green-green50 hover:bg-specific-green-green70 focus:bg-sepcific-green-green70"; + const DANGER = + "text-multi-neutrals-white bg-specific-red-red50 hover:bg-specific-red-red70 focus:bg-specific-red-red70"; + const LINK = + "text-multi-blue-blue60c hover:text-multi-blue-blue50b focus:text-multi-blue-blue60f"; + + const styling = + props.styling === "primary" + ? PRIMARY + : props.styling === "secondary" + ? SECONDARY + : props.styling === "supertask" + ? SUPERTASK + : props.styling === "danger" + ? DANGER + : props.styling === "link" + ? LINK + : ""; + return props.href === "no ref" ? (