Skip to content

Commit 5989f3b

Browse files
committed
feat: header icon as buttons
1 parent f2c44e7 commit 5989f3b

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

src/components/Header/Header.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
Navbar,
1717
Nav,
1818
NavItem,
19+
Button,
1920
Dropdown,
2021
DropdownToggle,
2122
DropdownMenu,
@@ -95,15 +96,21 @@ class Header extends React.Component {
9596
</DropdownMenu>
9697
</Dropdown>
9798
<NavItem className={cx('', s.headerIcon)}>
98-
<Icon glyph="mail"/>
99-
<span>8</span>
99+
<Button>
100+
<Icon glyph="mail"/>
101+
<span>8</span>
102+
</Button>
100103
</NavItem>
101104
<NavItem className={cx('', s.headerIcon)}>
102-
<Icon glyph="notification"/>
103-
<span>13</span>
105+
<Button>
106+
<Icon glyph="notification"/>
107+
<span>13</span>
108+
</Button>
104109
</NavItem>
105110
<NavItem className={cx('', s.headerIcon)}>
106-
<Icon glyph="settings"/>
111+
<Button>
112+
<Icon glyph="settings"/>
113+
</Button>
107114
</NavItem>
108115
</Nav>
109116
</Navbar>

src/components/Header/Header.scss

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
width: 250px;
2727

2828
@include media-breakpoint-down(md) {
29-
width: 125px;
29+
width: 100px;
3030
}
3131

3232
@include media-breakpoint-down(sm) {
@@ -102,8 +102,22 @@
102102
align-items: center;
103103
position: relative;
104104

105+
:global .btn {
106+
background: $white;
107+
border: none;
108+
109+
&:hover,
110+
&:active,
111+
&:focus,
112+
&:focus:active {
113+
background: $white;
114+
box-shadow: none !important;
115+
outline: none;
116+
}
117+
}
118+
105119
&:nth-child(n + 2) {
106-
margin-left: 1.25rem;
120+
margin-left: 0.5rem;
107121

108122
@include media-breakpoint-down(sm) {
109123
display: none;

0 commit comments

Comments
 (0)