Skip to content

Commit

Permalink
Student Modal Styling (#318)
Browse files Browse the repository at this point in the history
* update modal styling to mirror DS and edit button font

* update header typography and update outline styling

* ran prettier

* update button padding to align with other containers

* run prettier

* re-add modalContent styling class

* reinstate env example file

* prevent render of IEP fields if null or undefined

* edit to CI workflow

---------

Co-authored-by: test <[email protected]>
Co-authored-by: test <[email protected]>
Co-authored-by: Katrina Connors <[email protected]>
  • Loading branch information
4 people authored May 27, 2024
1 parent 3694816 commit a8bfae7
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 97 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ S3_USER_UPLOADS_SECRET_ACCESS_KEY=minioadmin
S3_USER_UPLOADS_BUCKET_NAME=compass-files

EMAIL=[email protected]
EMAIL_PASS=
EMAIL_PASS=
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: PR
on: [pull_request]
on: [push]
jobs:
type-check:
name: type-check
Expand Down
2 changes: 2 additions & 0 deletions src/components/design_system/button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
text-decoration: none;
text-align: center;
font-size: var(--base-size);
font-family: var(--quicksand);
font-weight: normal;
text-transform: none;
line-height: normal;
letter-spacing: 0;
Expand Down
76 changes: 74 additions & 2 deletions src/components/design_system/modal/Modal.module.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,74 @@
/* PLACEHOLDER FOR DESIGN SYSTEMS COMPONENT CSS
see notes in component file */
.editForm {
width: 100%;
}

.modalContent {
position: absolute;
top: 25%;
left: 50%;
transform: translate(-50%);
width: 400;
background-color: white;
border: 1px solid #000;
border-radius: 10px;
box-shadow: 24;
padding: 3rem;
}

.editModalContent {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
height: auto;
background-color: white;
border: 1px solid var(--on-primary-container);
border-radius: 10px;
box-shadow: 24;
padding: 2rem;
color: var(--on-primary-container);
font-family: var(--inter);
}

.editModalHeader {
font-family: var(--quicksand);
font-weight: var(--semibold);
font-size: var(--h4);
text-align: center;
}

.editModalContainer {
background-color: #ffffff;
border-radius: 10px;
padding: 10px 20px;
}

.editModalTextfield {
width: 100%;
}

.editModalContainerButtons {
margin-top: 1rem;
padding: 10px 20px;
}

.editModalButtonWrap {
display: flex;
justify-content: space-between;
width: 100%;
}

/* Small Devices, Tablets */
@media only screen and (min-width: 768px) {
.editModalContent {
width: 60%;
}
}

/* Medium Devices, Desktops */
@media only screen and (min-width: 992px) {
.editModalContent {
width: 40%;
}
}
Loading

0 comments on commit a8bfae7

Please sign in to comment.