Skip to content

Commit

Permalink
fix: Fix Logo size and title tag - Issue team-GIFT#71
Browse files Browse the repository at this point in the history
- Fix with problem with height and width
- Improuve accessibility with title tag
  • Loading branch information
sosoYim committed Jan 18, 2022
1 parent c051225 commit f05994b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Logo/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const transition = {
ease: 'easeInOut',
};

export function Logo({ height = '100%', width = '100%' }: LogoProps) {
export function Logo({ height, width, title }: LogoProps) {
return (
<MotionConfig transition={transition}>
<motion.svg
Expand All @@ -17,6 +17,7 @@ export function Logo({ height = '100%', width = '100%' }: LogoProps) {
xmlns="http://www.w3.org/2000/svg"
initial="hidden"
>
<title>{title}</title>
<g id="LogoImage">
<motion.path
d="M20 16H0V164H20V16Z"
Expand Down
1 change: 1 addition & 0 deletions src/components/Logo/Logo.types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export interface LogoProps {
title: string;
height?: number | string;
width?: number | string;
}

0 comments on commit f05994b

Please sign in to comment.