Skip to content

fix: resolve hydration mismatch in img alt attribute (#2340)#2397

Open
Sravan1011 wants to merge 1 commit into
json-schema-org:mainfrom
Sravan1011:fix/hydration-mismatch-img-alt-2340
Open

fix: resolve hydration mismatch in img alt attribute (#2340)#2397
Sravan1011 wants to merge 1 commit into
json-schema-org:mainfrom
Sravan1011:fix/hydration-mismatch-img-alt-2340

Conversation

@Sravan1011
Copy link
Copy Markdown

@Sravan1011 Sravan1011 commented May 8, 2026

fixed - Resolves hydration mismatch warnings in React/Next.js

Issue Number:

Closes #2340

Added missing alt='octue' attribute to the octue sponsor image
Fixed multi-line alt text on the apideck image (collapsed to single line)
Fixed incorrect alt on sourcemeta image (was 'dottxt logo', now 'sourcemeta logo')
Wrapped all 14 raw tags in {isClient && (<>...</>)} guards to prevent server/client theme mismatch, consistent with the existing pattern used by all other components on the page

image

…#2340)

- Add missing alt attribute to octue sponsor image
- Fix multi-line alt text on apideck image causing whitespace normalization mismatch
- Fix incorrect alt text on sourcemeta image (was 'dottxt logo')
- Wrap all raw <img> tags in {isClient && ...} guards to prevent
  server/client theme-dependent src mismatch, matching the pattern
  already used by <Image> components
@Sravan1011 Sravan1011 requested a review from a team as a code owner May 8, 2026 04:07
@github-project-automation github-project-automation Bot moved this to Ready to review in PR - Triage Group May 8, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

Hi @Sravan1011! Thanks a lot for your contribution!

I noticed that the following required information is missing or incomplete: issue reference, kind of change description

Please update the PR description to include this information. You can find placeholders in the PR template for these items.

Thanks a lot!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
website ✅ Ready (View Log) Visit Preview 0fba4e1

@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (07eca45) to head (0fba4e1).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #2397   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           30        30           
  Lines          672       672           
  Branches       211       211           
=========================================
  Hits           672       672           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

Hi @Sravan1011! Thanks a lot for your contribution!

I noticed that the following required information is missing or incomplete: kind of change description

Please update the PR description to include this information. You can find placeholders in the PR template for these items.

Thanks a lot!

1 similar comment
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

Hi @Sravan1011! Thanks a lot for your contribution!

I noticed that the following required information is missing or incomplete: kind of change description

Please update the PR description to include this information. You can find placeholders in the PR template for these items.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Ready to review

Development

Successfully merging this pull request may close these issues.

🐛 Bug: Hydration mismatch in img alt attribute (server vs client)

1 participant