Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .storybook/themeCFPB.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { create } from 'storybook/theming/create';
import CfpbLogo from '../src/assets/images/cfpb-logo.png';
import CfpbLogo from '../src/assets/images/cfpb_logo_test_237.5_cropped_third_try.svg?url';

const colors = {
black: '#101820',
Expand Down
2 changes: 2 additions & 0 deletions src/assets/images/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The source of the CFPB logo is pulled directly from the official logo
files and exported from Illustrator as an SVG.
Binary file removed src/assets/images/cfpb-logo-vertical.png
Binary file not shown.
Binary file removed src/assets/images/cfpb-logo.png
Binary file not shown.
Binary file removed src/assets/images/cfpb-seal.png
Binary file not shown.
1 change: 1 addition & 0 deletions src/assets/images/cfpb_logo.svg
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.
64 changes: 64 additions & 0 deletions src/assets/images/cfpb_logo_test_238_cropped.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions src/assets/images/cfpb_logo_test_cropped.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Header/responsive-menu.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { JSX, useCallback, useState } from 'react';
import type { KeyboardEvent, MouseEvent, ReactNode } from 'react';
import CFPBLogo from '../../assets/images/cfpb-logo.png';
import CFPBLogo from '../../assets/images/cfpb_logo_test_237.5_cropped_third_try.svg?url';
import { Button } from '../Buttons/button';
import { Icon } from '../Icon/icon';
import Link from '../Link/link';
Expand Down
5 changes: 5 additions & 0 deletions src/types/svg.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ declare module '*.svg?react' {
const content: FC<SVGProps<SVGSVGElement>>;
export default content;
}

declare module '*.svg?url' {
const src: string;
export default src;
}
Loading