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

Commit 607262e

Browse files
Secondary Buttons added
1 parent 988b806 commit 607262e

5 files changed

Lines changed: 76 additions & 1 deletion

File tree

src/lib/eccentric.css

Lines changed: 24 additions & 0 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: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,39 @@ button:hover {
135135
border-width: 2px;
136136
}
137137

138+
// These are Secondary Buttons
139+
140+
141+
142+
// Secondary Info button
143+
.et-button-info-secondary{
144+
background-color: var(--et-white);
145+
border: 2px solid var(--et-blue-primary);
146+
color: var(--et-blue-primary);
147+
}
148+
149+
// Alert button
150+
.et-button-alert-secondary{
151+
background-color: (var(--et-white));
152+
border: 2px solid var(--et-danger);
153+
color: var(--et-danger);
154+
}
155+
156+
// Warning button
157+
.et-button-warning-secondary{
158+
background-color: (var(--et-white));
159+
border: 2px solid var(--et-warning);
160+
color: var(--et-warning);
161+
}
162+
163+
// Valid/Success button
164+
.et-button-success-secondary{
165+
background-color: (var(--et-white));
166+
border: 2px solid var(--et-green-primary);
167+
color: var(--et-green-primary);
168+
}
169+
170+
138171
// Heading Method - Combined button Property
139172

140173
h1,.et-h1,h2,.et-h2,h3,.et-h3,h4,.et-h4,h5,.et-h5,h6,.et-h6{

src/tests/__buttons.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,11 @@
1414
<button class="et-button-warning">Check Notifications</button>
1515
<button class="et-button-deactivated">Button</button>
1616
<button class="et-button-deactivated-secondary">deactivated</button>
17+
18+
19+
<button class="et-button-info-secondary">Button</button>
20+
<button class="et-button-alert-secondary">Button</button>
21+
<button class="et-button-warning-secondary">Button</button>
22+
<button class="et-button-success-secondary">Button</button>
1723
</body>
1824
</html>

src/tests/auto/__BUTTON_TESTS.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ __BUTTON__TESTS = [
2626
},
2727
{
2828
"classname": "et-button-deactivated-secondary"
29+
},
30+
{
31+
"classname": "et-button-info-secondary"
32+
},
33+
{
34+
"classname": "et-button-alert-secondary"
35+
},
36+
{
37+
"classname": "et-button-warning-secondary"
38+
},
39+
{
40+
"classname": "et-button-success-secondary"
2941
}
3042
]
3143

0 commit comments

Comments
 (0)