Skip to content

Commit

Permalink
fix: 💅 Minor home icon fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CPatchane committed Jan 28, 2019
1 parent 1c243c1 commit 66e1a09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Apps/AppNavButtons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getHomeApp } from 'lib/reducers'

import { translate } from 'cozy-ui/react/I18n'
import Icon from 'cozy-ui/react/Icon'
import HomeIcon from './IconCozyHome'
import HomeIcon from 'components/Apps/IconCozyHome'
import { isFetchingApps } from 'lib/reducers'

class AppNavButton extends Component {
Expand Down Expand Up @@ -52,11 +52,11 @@ class AppNavButton extends Component {
<div className={`coz-nav-apps-btns${isHomeApp ? ' --currentHome' : ''}`}>
{homeHref ? (
<a href={homeHref} className="coz-nav-apps-btns-home">
<HomeIcon currentColor />
<HomeIcon className="coz-nav-apps-btns-home-svg" currentColor />
</a>
) : (
<span className="coz-nav-apps-btns-home">
<HomeIcon currentColor />
<HomeIcon className="coz-nav-apps-btns-home-svg" currentColor />
</span>
)}
{!isHomeApp && <span className="coz-nav-apps-btns-sep" />}
Expand Down
5 changes: 5 additions & 0 deletions src/styles/apps.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
margin-right: .75rem;
}

[role=banner] .coz-nav-apps-btns-home-svg {
max-width: 2rem;
max-height: 2rem;
}

[role=banner] .coz-nav-apps-btns-home,
[role=banner] .coz-nav-apps-btns-home[href]:visited {
color: var(--dodger-blue);
Expand Down

0 comments on commit 66e1a09

Please sign in to comment.