Skip to content

Commit

Permalink
Change Cancel/Close buttons to secondary (outlined) style (#1926)
Browse files Browse the repository at this point in the history
  • Loading branch information
entrotech authored Oct 31, 2024
1 parent 81839f3 commit 06e0dd5
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Authorization/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const Login = () => {
>
<Button
color="colorDefault"
variant="text"
variant="outlined"
onClick={() => {
navigate("/calculation/1/0");
}}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Faq/DeleteFaqModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const DeleteFaqModal = ({ isModalOpen, closeModal, handleDelete, isFaq }) => {
{`Are you sure you want to permanently delete the ${type}?`}
</div>
<div className={classes.buttonFlexBox}>
<Button onClick={closeModal} variant="text" id="cancelButton">
<Button onClick={closeModal} variant="outlined" id="cancelButton">
Cancel
</Button>
<Button onClick={handleDelete} variant="contained" color={"colorError"}>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Faq/SaveConfirmationModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const SaveConfirmationModal = ({ isOpen, onClose, onYes }) => {
{"Are you sure you want to save FAQ page edits?"}
</div>
<div className={classes.buttonFlexBox}>
<Button onClick={onClose} variant="text" id="cancelButton">
<Button onClick={onClose} variant="outlined" id="cancelButton">
Cancel
</Button>
<Button onClick={onYes} variant="contained" color={"colorPrimary"}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const AffordableEdgeCaseModal = ({ isOpen, onClose, onYes }) => {
{`100% affordable housing of less than 50 units are exempt from the TDM Ordinance. Did you intend to change to 100% Affordable Housing?`}
</div>
<div className={classes.buttonFlexBox}>
<Button onClick={onClose} variant="text" id="cancelButton">
<Button onClick={onClose} variant="outlined" id="cancelButton">
NO
</Button>
<Button onClick={onYes} variant="contained" color={"colorPrimary"}>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/ProjectWizard/NavConfirmDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const NavConfirmDialog = ({ blocker }) => {
<div className={classes.modalActions}>
<Button
color="colorCancel"
variant="text"
variant="outlined"
id="modalCancel"
data-testid="transitionCancel"
onClick={() => blocker.reset()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const DatePopup = ({

<hr style={{ width: "100%" }} />
<div style={{ display: "flex" }}>
<Button onClick={setDefault} variant="text">
<Button onClick={setDefault} variant="outlined">
Reset
</Button>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const StatusPopup = ({
</div>
<hr style={{ width: "100%" }} />
<div style={{ display: "flex" }}>
<Button onClick={setDefault} variant="text">
<Button onClick={setDefault} variant="outlined">
Reset
</Button>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ const TextPopup = ({

<hr style={{ width: "100%" }} />
<div style={{ display: "flex", justifyContent: "center" }}>
<Button onClick={setDefault} variant="text">
<Button onClick={setDefault} variant="outlined">
Reset
</Button>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const VisibilityPopup = ({

<hr style={{ width: "100%" }} />
<div style={{ display: "flex" }}>
<Button onClick={setDefault} variant="text">
<Button onClick={setDefault} variant="outlined">
Reset
</Button>
<Button
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Projects/CopyProjectModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function CopyProjectModal({
/>
</div>
<div className={classes.buttonFlexBox}>
<Button onClick={onClose} variant="text">
<Button onClick={onClose} variant="outlined">
Cancel
</Button>
<Button
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Projects/CsvModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const CsvModal = ({
setProjectCollection("");
setFilename("");
}}
variant="text"
variant="outlined"
id="cancelButton"
>
Cancel
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Projects/DeleteProjectModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const DeleteProjectModal = ({ mounted, onClose, project }) => {
{Array.isArray(project.name) ? project.name.join(", ") : project.name}
</div>
<div className={classes.buttonFlexBox}>
<Button onClick={onClose} variant="text" id="cancelButton">
<Button onClick={onClose} variant="outlined" id="cancelButton">
Cancel
</Button>
{project.dateTrashed ? (
Expand Down
4 changes: 3 additions & 1 deletion client/src/components/Projects/DownloadProjectModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import Button from "../Button/Button";

import ModalDialog from "../UI/AriaModal/ModalDialog";

// This file appears to be obsolete

const useStyles = createUseStyles(theme => ({
buttonFlexBox: {
display: "flex",
Expand Down Expand Up @@ -93,7 +95,7 @@ export default function DownloadProjectModal({
</table>
</div>
<div className={classes.buttonFlexBox}>
<Button onClick={onClose} variant="text">
<Button onClick={onClose} variant="outlined">
Close
</Button>
{/* <Button
Expand Down

0 comments on commit 06e0dd5

Please sign in to comment.