Skip to content

Commit

Permalink
Merge pull request #700 from MetaPhase-Consulting/fix/ie-11-image-ren…
Browse files Browse the repository at this point in the history
…dering

Fix jagged image rendering in IE11 by using low-res versions of images
  • Loading branch information
mjoyce91 committed Feb 10, 2020
2 parents de17e5e + 097499b commit 5d7f1c7
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 13 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/logos/png/hr-logo-white-sm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions src/Components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
import React from 'react';
import { Link } from 'react-router-dom';
import { getAssetPath } from 'utilities';
import logo from '../../assets/logos/png/horizontal_color.png';

const hrFooterLogo = getAssetPath('/assets/logos/png/hr-logo-white.png');
const tmFooterLogo = getAssetPath('/assets/logos/png/horizontal_white_thin.png');
const hrFooterLogo = getAssetPath('/assets/logos/png/hr-logo-white-sm.png');
const tmFooterLogo = getAssetPath('/assets/logos/png/horizontal_white_thin-sm.png');

const version = process.env.VERSION;

Expand Down
4 changes: 2 additions & 2 deletions src/Components/Footer/__snapshots__/Footer.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ exports[`Footer Component matches snapshot 1`] = `
<img
alt="Bureau of Human Resources logo"
className="usa-footer-logo-img logo-img-hr"
src="/assets/logos/png/hr-logo-white.png"
src="/assets/logos/png/hr-logo-white-sm.png"
/>
</div>
<div
Expand All @@ -89,7 +89,7 @@ exports[`Footer Component matches snapshot 1`] = `
<img
alt="TalentMAP logo"
className="usa-footer-logo-img-tm logo-img-tm"
src="/assets/logos/png/horizontal_white_thin.png"
src="/assets/logos/png/horizontal_white_thin-sm.png"
/>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import InteractiveElement from '../InteractiveElement';
import BetaHeader from './BetaHeader';
import ClientHeader from '../ClientHeader';

const logo = getAssetPath('/assets/logos/png/horizontal_white_thin.png');
const hrFooterLogo = getAssetPath('/assets/logos/png/hr-logo-white.png');
const logo = getAssetPath('/assets/logos/png/horizontal_white_thin-sm.png');
const hrFooterLogo = getAssetPath('/assets/logos/png/hr-logo-white-sm.png');

export class Header extends Component {
constructor(props) {
Expand Down
8 changes: 4 additions & 4 deletions src/Components/Header/__snapshots__/Header.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ exports[`Header matches snapshot when logged in 1`] = `
<img
alt="Bureau of Human Resources logo"
className="logo-img-hr"
src="/assets/logos/png/hr-logo-white.png"
src="/assets/logos/png/hr-logo-white-sm.png"
/>
<img
alt="TalentMAP logo"
className="logo-img-tm"
src="/assets/logos/png/horizontal_white_thin.png"
src="/assets/logos/png/horizontal_white_thin-sm.png"
/>
</Link>
</div>
Expand Down Expand Up @@ -138,12 +138,12 @@ exports[`Header matches snapshot when logged out 1`] = `
<img
alt="Bureau of Human Resources logo"
className="logo-img-hr"
src="/assets/logos/png/hr-logo-white.png"
src="/assets/logos/png/hr-logo-white-sm.png"
/>
<img
alt="TalentMAP logo"
className="logo-img-tm"
src="/assets/logos/png/horizontal_white_thin.png"
src="/assets/logos/png/horizontal_white_thin-sm.png"
/>
</Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/HomePageBanner/HomePageBanner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import LinkButton from '../LinkButton';
import { positionCountFetchData } from '../../actions/positionCount';
import { getAssetPath } from '../../utilities';

const logo = getAssetPath('/assets/logos/png/horizontal_color_thin.png');
const logo = getAssetPath('/assets/logos/png/horizontal_color_thin-sm.png');

export const formatNum = n => numeral(n).format('0,0');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`HomePageBanner Component matches snapshot 1`] = `
>
<img
alt="TalentMAP logo"
src="/assets/logos/png/horizontal_color_thin.png"
src="/assets/logos/png/horizontal_color_thin-sm.png"
/>
<div>
Expand Down

0 comments on commit 5d7f1c7

Please sign in to comment.