Skip to content

Release/v6.1.1#613

Merged
yvonnetangsu merged 3 commits intomainfrom
release/v6.1.1
Sep 30, 2025
Merged

Release/v6.1.1#613
yvonnetangsu merged 3 commits intomainfrom
release/v6.1.1

Conversation

@yvonnetangsu
Copy link
Member

@yvonnetangsu yvonnetangsu commented Sep 30, 2025

READY FOR REVIEW

Summary

Review By (Date)

  • Retro

Criticality

  • 7

Review Tasks

Setup tasks and/or behavior to test

  1. See DS-1845 | Aspect ratio option for Story Image; a11y, misc fixups #603

su-sws-jira and others added 2 commits September 26, 2025 16:43
* Add image aspect ratio crops

* Aspect ratio option

* clean up

* Update aspectRatioImage

* use getImageSources for aspect ratio images

* lint

* Make tile card superheading the heading

* mega menu card external link icon and a11y udpate

* Remove unused import

* Get rid of alt for most cards

* Make gallery slide largest image src larger; clean up getImageSources and AspectRatioImage; no need to use srcset for campaign hero logo

* Simplify AspectRatioImage

* clean up

* Add width and height for campaign header logo

* more clean up

* Add tabindex=-1 to skip link destinations per SODA recommendation
@netlify
Copy link

netlify bot commented Sep 30, 2025

Deploy Preview for adapt-giving ready!

Name Link
🔨 Latest commit 7438a1d
🔍 Latest deploy log https://app.netlify.com/projects/adapt-giving/deploys/68dc35927b784700083187a0
😎 Deploy Preview https://deploy-preview-613--adapt-giving.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@yvonnetangsu yvonnetangsu added the patch patch label Sep 30, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements changes to improve image handling and accessibility features across the codebase. The main purpose is to refactor image processing, update responsive image breakpoints, and enhance accessibility for navigation and keyboard users.

  • Refactored image processing to use aspect ratios and direct image sizing instead of complex responsive breakpoint systems
  • Updated responsive breakpoints and simplified image source generation
  • Enhanced accessibility with improved skip links and tabIndex management for keyboard navigation

Reviewed Changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
utilities/getImageSources.ts Simplified responsive image generation by removing custom breakpoints and original dimensions parameters
styles/tables.css Added explicit white background for odd table rows
components/TileCard/* Restructured component to use Heading for superheadline and removed alt prop handling
components/Storyblok/partials/PageLayout.tsx Added tabIndex to main content for accessibility
components/Storyblok/SbStoryImage.tsx Added aspect ratio support and image focus handling
components/Storyblok/SbInteriorPage.tsx Enhanced skip link functionality with conditional targeting
components/Storyblok/SbCampaignPage/* Improved image sizing and removed complex responsive image logic
components/Image/* Major refactor to use aspect ratios with comprehensive breakpoint definitions
components/Media/MediaWrapper.tsx Removed fixed height wrapper for full-width images
components/OverhangCard/OverhangCard.styles.ts Fixed CSS selector syntax
components/EmbedVideo/EmbedVideo.tsx Restructured video wrapper to use proper aspect ratio container

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

{!!getNumBloks(contactInfo) && (
<div className="max-md:mb-45 md:max-lg:mb-72">
{hasContactInfo && (
<div className="max-md:mb-45 md:max-lg:mb-72" id="contact-info" tabIndex={hasContentMenu ? -1 : null}>
Copy link

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tabIndex should be -1 or undefined, not null. Use undefined when the tabIndex should not be set.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

<div id="body-content" className={layout === 'left-sidebar' ? 'lg:col-span-8 xl:col-start-5' : 'lg:col-span-10 lg:col-start-2 xl:col-span-8 xl:col-start-3'}>
<div
id="body-content"
tabIndex={hasContentMenu && !hasContactInfo ? -1 : null}
Copy link

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tabIndex should be -1 or undefined, not null. Use undefined when the tabIndex should not be set.

Suggested change
tabIndex={hasContentMenu && !hasContactInfo ? -1 : null}
tabIndex={hasContentMenu && !hasContactInfo ? -1 : undefined}

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

export const imageWrapper = 'shrink-0 grow-0 overflow-hidden -mt-80';

export const image = (hasLink: boolean) => hasLink && 'group-hocus-within:scale-105 will-change transition-transform *:w-full';
export const image = (hasLink: boolean) => hasLink && 'group-hocus-within:scale-105 will-change transition-transform w-full';
Copy link

Copilot AI Sep 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The will-change property should specify which property will change, e.g., will-change-transform instead of just will-change.

Suggested change
export const image = (hasLink: boolean) => hasLink && 'group-hocus-within:scale-105 will-change transition-transform w-full';
export const image = (hasLink: boolean) => hasLink && 'group-hocus-within:scale-105 will-change-transform transition-transform w-full';

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@yvonnetangsu
Copy link
Member Author

Going to YOLO this one. Please review retro 🤠

@yvonnetangsu yvonnetangsu merged commit 949507a into main Sep 30, 2025
5 checks passed
@yvonnetangsu yvonnetangsu deleted the release/v6.1.1 branch September 30, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants