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

Commit b857ef5

Browse files
authored
Merge pull request #98 from DesignSystemsOSS/v2.0
Merging Updates of v2.0 to Master Branch
2 parents 9b5c2af + 6bc1987 commit b857ef5

5 files changed

Lines changed: 36 additions & 37 deletions

File tree

src/lib/eccentric.css

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/eccentric.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/eccentric.scss

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ body {
6262
}
6363

6464
/// button method - primary-button, default button property
65-
.et-button, button, .et-primaryButton {
65+
.et-button, button {
6666
color: white;
6767
background-color: var(--et-blue-primary);
6868
padding: 0.6em;
@@ -78,7 +78,7 @@ button:hover {
7878
cursor: pointer;
7979
}
8080

81-
.et-button-deactivated-secondary:focus {
81+
.et-button-disabled-secondary:focus {
8282
border: inherit;
8383
}
8484

@@ -118,12 +118,12 @@ button:hover {
118118
line-height: inherit;
119119
}
120120

121-
.et-button-deactivated {
121+
.et-button-disabled {
122122
background-color: var(--et-gray-primary);
123123
color: var(--et-black);
124124
}
125125

126-
.et-button-deactivated-secondary {
126+
.et-button-disabled-secondary {
127127
background-color: var(--et-gray-secondary);
128128
color: var(--et-black);
129129
border: var(--et-black) solid;
@@ -132,31 +132,29 @@ button:hover {
132132

133133
// These are Secondary Buttons
134134

135-
136-
137135
// Secondary Info button
138-
.et-button-info-secondary{
136+
.et-button-secondary{
139137
background-color: var(--et-white);
140138
border: 2px solid var(--et-blue-primary);
141139
color: var(--et-blue-primary);
142140
}
143141

144-
// Alert button
145-
.et-button-alert-secondary{
142+
// Danger button
143+
.et-button-danger-secondary, .et-button-invalid-secondary {
146144
background-color: (var(--et-white));
147145
border: 2px solid var(--et-danger);
148146
color: var(--et-danger);
149147
}
150148

151149
// Warning button
152-
.et-button-warning-secondary{
150+
.et-button-warning-secondary {
153151
background-color: (var(--et-white));
154152
border: 2px solid var(--et-warning);
155153
color: var(--et-warning);
156154
}
157155

158156
// Valid/Success button
159-
.et-button-success-secondary{
157+
.et-button-success-secondary {
160158
background-color: (var(--et-white));
161159
border: 2px solid var(--et-green-primary);
162160
color: var(--et-green-primary);
@@ -165,48 +163,48 @@ button:hover {
165163

166164
// Heading Method - Combined button Property
167165

168-
h1,.et-h1,h2,.et-h2,h3,.et-h3,h4,.et-h4,h5,.et-h5,h6,.et-h6{
166+
h1,.et-h1, h2, .et-h2, h3, .et-h3, h4, .et-h4, h5, .et-h5, h6, .et-h6 {
169167
font-family: var(--et-sans-serif);
170168
color: var(--et-black);
171169
margin: 0;
172170
}
173171

174172
// heading method - (h1)
175-
h1, .et-h1{
173+
h1, .et-h1 {
176174
font-size: 45.3px;
177175
font-weight: 600;
178176
}
179177

180178
// heading method - (h2)
181-
h2, .et-h2{
179+
h2, .et-h2 {
182180
font-size: 38.3px;
183181
}
184182

185183
// heading method - (h3)
186-
h3, .et-h3{
184+
h3, .et-h3 {
187185
font-size: 29.12px;
188186
font-weight: 600;
189187
}
190188

191189
// heading method - (h4)
192-
h4, .h4{
190+
h4, .et-h4{
193191
font-size: 22.65px;
194192
}
195193

196194
// heading method - (h5)
197-
h5, .et-h5{
195+
h5, .et-h5 {
198196
font-size: 16.18px;
199197
font-weight: 600;
200198
}
201199

202200
// heading method - (h6)
203-
h6, .et-h6{
201+
h6, .et-h6 {
204202
font-size: 12.94px;
205203
}
206204

207205
// Combined Property For all tags
208-
// This Contains various TAgs like Paragraph.italics,bold,quote,Underlined.
209-
.et-paragragh, .et-quote, .et-regular, p, b, i, u, q {
206+
// This Contains various Tags like Paragraph, italics, bold, quote, Underlined.
207+
.et-paragraph, .et-quote, .et-regular, p, b, i, u, q {
210208
font-family: var(--et-sans-serif);
211209
margin: 0;
212210
color: var(--et-black);
@@ -215,8 +213,9 @@ color: var(--et-black);
215213
b {
216214
font-weight: bold;
217215
}
216+
218217
// To remove extra (unwanted) margin.
219-
.et-paragragh, .et-regular, p {
218+
.et-paragraph, .et-regular, p {
220219
margin: 0;
221220
}
222221

src/tests/__buttons.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
<button class="et-button-danger et-hover">Close this Task</button>
1313
<button class="et-button-valid">Save Changes</button>
1414
<button class="et-button-warning">Check Notifications</button>
15-
<button class="et-button-deactivated">Button</button>
16-
<button class="et-button-deactivated-secondary">deactivated</button>
15+
<button class="et-button-disabled">Button</button>
16+
<button class="et-button-disabled-secondary">deactivated</button>
1717

1818

19-
<button class="et-button-info-secondary">Button</button>
19+
<button class="et-button-secondary">Button</button>
2020
<button class="et-button-alert-secondary">Button</button>
2121
<button class="et-button-warning-secondary">Button</button>
2222
<button class="et-button-success-secondary">Button</button>

src/tests/auto/__BUTTON_TESTS.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ __BUTTON__TESTS = [
2222
"classname": "et-button-warning"
2323
},
2424
{
25-
"classname": "et-button-deactivated"
25+
"classname": "et-button-disabled"
2626
},
2727
{
28-
"classname": "et-button-deactivated-secondary"
28+
"classname": "et-button-disabled-secondary"
2929
},
3030
{
31-
"classname": "et-button-info-secondary"
31+
"classname": "et-button-secondary"
3232
},
3333
{
3434
"classname": "et-button-alert-secondary"

0 commit comments

Comments
 (0)