Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

Commit 3207a3a

Browse files
committed
CJPM-17497: Changed Modal and Form styles per UX
1 parent e99f5aa commit 3207a3a

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ For components from visual-stack that require state management, this library pro
2626
This is a microsite providing documentation and live examples of components. This package depends on the other two.
2727

2828
### Running locally
29+
Install lerna: `npm install -g lerna`
30+
31+
Make sure you are using node 14 or below (`npm install -g n` can be helpful here)
2932

3033
From a fresh clone of the repo, start by bootstrapping the project from the root with `npm run bootstrap`. This will install all external dependencies, create links between local dependent packages and build all three packages.
3134

packages/visual-stack/src/components/Form/Form.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,6 @@ fieldset.group ul.checkbox li.focus {
147147
margin-top: -4px;
148148
}
149149

150-
.vs-field {
151-
margin-bottom: 24px;
152-
}
153-
154150
.vs-field-optional {
155151
color: #777;
156152
font-size: 1.3rem;

packages/visual-stack/src/components/Modal.css

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
.modal-content {
4545
position: relative;
46+
top: 80px;
4647
background-color: #fff;
4748
-webkit-background-clip: padding-box;
4849
background-clip: padding-box;
@@ -79,7 +80,14 @@
7980

8081
.modal-header {
8182
padding: 15px;
82-
border-bottom: 1px solid #e5e5e5;
83+
padding-left: 25px;
84+
padding-right: 25px;
85+
}
86+
87+
.modal-header-grid {
88+
display: grid;
89+
grid-template-columns: 1fr 36px;
90+
align-items: center;
8391
}
8492

8593
.modal-header h1 {
@@ -99,12 +107,13 @@
99107
.modal-body {
100108
position: relative;
101109
padding: 15px;
110+
padding-left: 25px;
111+
padding-right: 25px;
102112
}
103113

104114
.modal-footer {
105115
padding: 15px;
106116
text-align: right;
107-
border-top: 1px solid #e5e5e5;
108117
}
109118

110119
.modal-footer .btn + .btn {
@@ -143,7 +152,7 @@
143152

144153
@media (min-width: 768px) {
145154
.modal-dialog {
146-
width: 600px;
155+
width: 400px;
147156
margin: 30px auto;
148157
}
149158
.modal-content {

0 commit comments

Comments
 (0)