Skip to content

Commit 1ad9f0f

Browse files
authored
Updated button styles (#61)
1 parent 1b7be6a commit 1ad9f0f

17 files changed

+63
-46
lines changed

src/AccountDropdown.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
@import './theme/common.scss';
33

44
.accountdropdown {
5+
width: 50px;
56
position: relative;
67

78
&__btn {

src/AccountDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const AccountDropdown: React.FC = (props) => {
6363
</Link>
6464
</li>
6565
<li className="accountdropdown__listitem accountdropdown__itembtns">
66-
<button className="epbtn --primary --fullwidth" type="button" onClick={logout}>
66+
<button className="epbtn --secondary --fullwidth" type="button" onClick={logout}>
6767
{t('logout')}
6868
</button>
6969
</li>

src/AddressForm.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@
4949
color: $mainErrorColor;
5050
}
5151

52-
.epbtn {
53-
width: 100px;
54-
}
55-
5652
.epbtn + .epbtn {
5753
margin-left: 10px;
5854
}

src/AddressForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export const AddressForm: React.FC<AddressFormParams> = (props) => {
279279
<button className="epbtn --bordered" type="button" onClick={handleClose}>
280280
{t('cancel')}
281281
</button>
282-
<button className="epbtn --primary" type="submit">
282+
<button className="epbtn --secondary" type="submit">
283283
{t('save')}
284284
</button>
285285
</div>

src/AppHeader.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
}
6969
}
7070

71-
@media (max-width: $mobileWidth) {
71+
@media (max-width: $mobileWidth - 1px) {
7272
&__search {
7373
flex: 0;
7474
}
@@ -80,16 +80,20 @@
8080
&__accountm,
8181
&__search,
8282
&__language,
83-
&__moltincartcontainer,
8483
&__account {
8584
margin-right: 10px;
8685
}
8786

88-
&__moltincartcontainer & {
87+
&__moltincartcontainer {
88+
margin: 0;
89+
}
90+
91+
&__moltincartcontainer & {
8992
&__cartbtn.--bordered {
9093
border: none;
9194

9295
&:hover {
96+
border: none;
9397
background: transparent;
9498
}
9599
}
@@ -107,7 +111,7 @@
107111
}
108112
}
109113

110-
@media (min-width: $mobileWidth - 1px) {
114+
@media (min-width: $mobileWidth) {
111115
&__cartbtn {
112116
padding: 10px 15px;
113117
}

src/AppHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const AppHeader: React.FC = () => {
4444
<LanguageDropdown />
4545
</div>
4646
<div className="appheader__moltincartcontainer">
47-
<button className="appheader__cartbtn epbtn --bordered" aria-label={t('cart')} onClick={handleCartModal}>
47+
<button className="epbtn --ghost appheader__cartbtn --bordered" aria-label={t('cart')} onClick={handleCartModal}>
4848
<span className="appheader__cartbtntxt">
4949
{t('cart')}
5050
{' ('}

src/DeleteAddressDialog.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@
4949
color: $mainErrorColor;
5050
}
5151

52-
.epbtn {
53-
width: 100px;
54-
}
55-
5652
.epbtn + .epbtn {
5753
margin-left: 10px;
5854
}

src/DeleteAddressDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const DeleteAddressDialog: React.FC<DeleteAddressDialogParams> = (props)
3737
<button className="epbtn" type="button" onClick={handleCancelDelete}>
3838
{t('cancel')}
3939
</button>
40-
<button className="epbtn --primary" type="button" onClick={onDeleteAddress}>
40+
<button className="epbtn --secondary" type="button" onClick={onDeleteAddress}>
4141
{t('delete')}
4242
</button>
4343
</div>

src/Home.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
$block: &;
55

66
.epbtn {
7-
min-width: 120px;
87
white-space: nowrap;
98
}
109

src/Home.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const Home: React.FC = () => {
3838
<h1 className="home__bannerheading">{t('home-1-heading')}</h1>
3939
<div className="home__bannertxt">
4040
<p>{t('home-1-content')}</p>
41-
<button type="button" className="epbtn --primary">{t('learn-more')}</button>
41+
<button type="button" className="epbtn --secondary">{t('learn-more')}</button>
4242
</div>
4343
</div>
4444
</div>
@@ -54,7 +54,7 @@ export const Home: React.FC = () => {
5454
<p className="home__titlesmall">{t('home-2-subheading')}</p>
5555
<p className="home__title">{t('home-2-heading')}</p>
5656
<div className="home__goodsbtns">
57-
<button type="button" className="epbtn --primary">{t('learn-more')}</button>
57+
<button type="button" className="epbtn --secondary">{t('learn-more')}</button>
5858
</div>
5959
</div>
6060
<ImageContainer imgUrl={productImage1} alt={productFileName1} imgClassName="home__goodsimage" />
@@ -66,7 +66,7 @@ export const Home: React.FC = () => {
6666
<p className="home__titlesmall">{t('home-3-subheading')}</p>
6767
<p className="home__title">{t('home-3-heading')}</p>
6868
<p className="home__description">{t('home-3-content')}</p>
69-
<button type="button" className="epbtn --primary">{t('add-to-cart')}</button>
69+
<button type="button" className="epbtn --secondary">{t('add-to-cart')}</button>
7070
</div>
7171
<ImageContainer imgUrl={productImage2} alt={productFileName2} imgClassName="home__goodsimage" />
7272
</div>
@@ -113,7 +113,7 @@ export const Home: React.FC = () => {
113113
<h2 className="home__bannerheading">{t('home-7-heading')}</h2>
114114
<div className="home__bannertxt">
115115
<p>{t('home-7-content')}</p>
116-
<button type="button" className="epbtn --primary">{t('learn-more')}</button>
116+
<button type="button" className="epbtn --secondary">{t('learn-more')}</button>
117117
</div>
118118
</div>
119119
</div>
@@ -173,7 +173,7 @@ export const Home: React.FC = () => {
173173
<p className="home__description">{t('home-11-content-1')}</p>
174174
<p className="home__description">{t('home-11-content-2')}</p>
175175
<div className="home__goodsbtns">
176-
<button type="button" className="epbtn --primary">{t('bellvie-help')}</button>
176+
<button type="button" className="epbtn --secondary">{t('bellvie-help')}</button>
177177
</div>
178178
</div>
179179
</div>
@@ -186,7 +186,7 @@ export const Home: React.FC = () => {
186186
<p className="home__description">{t('home-12-content-1')}</p>
187187
<p className="home__description">{t('home-12-content-2')}</p>
188188
<div className="home__goodsbtns">
189-
<button type="button" className="epbtn --primary">{t('about')}</button>
189+
<button type="button" className="epbtn --secondary">{t('about')}</button>
190190
</div>
191191
</div>
192192
</div>

0 commit comments

Comments
 (0)