Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

DButoyez
Copy link
Contributor

@DButoyez DButoyez commented Feb 3, 2025

Issue: Fix images not visible at 400% zoom

Summary: This PR addresses accessibility issues related to images not being properly visible when zoomed to 400% reflow mode. The problem was identified in the OData project, specifically in the context of the "Webinar on Salesforce Connect External Object Reporting" blog. The images below this blog were not displaying correctly when the reflow settings were applied.

Details:

Ensured images scale with the container by setting max-width: 100% and height: auto.
Prevented inline spacing issues by setting display: block.
Centered images within their container using margin: 0 auto.
Improved rendering quality of images with image-rendering: crisp-edges and image-rendering: -webkit-optimize-contrast.
Added a media query for screens with a maximum width of 768px to ensure images fit smaller screens by setting their width to 100% and maintaining their aspect ratio.

Before:

image

After:

Screenshot 2025-02-05 100044

image

@DButoyez DButoyez merged commit 7d035e6 into master Feb 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants