Skip to content

Commit

Permalink
Browser warnings and issues resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatnema committed Nov 1, 2023
1 parent d61d804 commit 3e347c2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion components/AuthorAvatars.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function AuthorAvatars({ authors = [] }) {
);

return author.link ? (
<a alt={author.name} href={author.link} data-testid="AuthorAvatars-link">
<a alt={author.name} key={index} href={author.link} data-testid="AuthorAvatars-link">
{avatar}
</a>
) : (
Expand Down
4 changes: 2 additions & 2 deletions components/NewsletterSubscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default function NewsletterSubscribe ({
<form name="form 1" method="POST" className="md:flex" data-netlify="true">
<input type="hidden" name="form-name" value="form 1" />
<input type="hidden" name="type" value={type} />
<input type="text" name="name" placeholder={t('newsletterCTA.nameInput')} className="form-input block w-full sm:text-sm sm:leading-5 md:mr-2 md:mt-0 md:flex-1 rounded-md" required data-testid="NewsletterSubscribe-text-input"/>
<input type="email" name="email" placeholder={t('newsletterCTA.emailInput')} className="form-input block w-full mt-2 sm:text-sm sm:leading-5 md:mr-2 md:mt-0 md:flex-1 rounded-md" required data-testid="NewsletterSubscribe-email-input"/>
<input type="text" name="name" placeholder={t('newsletterCTA.nameInput')} className="form-input block w-full sm:text-sm sm:leading-5 md:mr-2 md:mt-0 md:flex-1 rounded-md" required autoComplete="true" data-testid="NewsletterSubscribe-text-input"/>
<input type="email" name="email" placeholder={t('newsletterCTA.emailInput')} className="form-input block w-full mt-2 sm:text-sm sm:leading-5 md:mr-2 md:mt-0 md:flex-1 rounded-md" required autoComplete="true" data-testid="NewsletterSubscribe-email-input"/>
<Button type="submit" text={t('newsletterCTA.subscribeBtn')} className="w-full mt-2 md:mr-2 md:mt-0 md:flex-1" />
</form>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/icons/Twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function IconTwitter({ className }) {
fillRule="evenodd"
d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"
fill="currentColor"
clip-fillRule="evenodd" >
clip-fillrule="evenodd" >
</path>
</svg>
)
Expand Down
18 changes: 8 additions & 10 deletions components/newsroom/FeaturedBlogPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,14 @@ export default function FeaturedBlogPost({ post, className = ''}) {
{post.type}
</span>
</Paragraph>
<Link href={post.slug}>
<a className="block" data-testid="FeaturedBlog-title">
<Heading level="h3" typeStyle="heading-sm-semibold" className="mt-2">
{post.title}
</Heading>
<Paragraph typeStyle="body-sm" className="mt-3">
<TextTruncate element="span" line={2} text={post.excerpt} />
</Paragraph>
</a>
</Link>
<div>
<Heading level="h3" typeStyle="heading-sm-semibold" className="mt-2">
{post.title}
</Heading>
<Paragraph typeStyle="body-sm" className="mt-3">
<TextTruncate element="span" line={2} text={post.excerpt} />
</Paragraph>
</div>
</div>
<div className="mt-6 flex items-center">
<div className="relative flex-shrink-0" data-testid="FeaturedBlog-Authorimg">
Expand Down

0 comments on commit 3e347c2

Please sign in to comment.