Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix images for PeopleGrid Component #462

Merged
merged 3 commits into from
Apr 30, 2024
Merged

Fix images for PeopleGrid Component #462

merged 3 commits into from
Apr 30, 2024

Conversation

lovesitecore
Copy link
Collaborator

Description / Motivation

The People Grid Component is used in 2 different occasions: The Featured Speakers and the organizers. In both cases, the Images of each person should be displayed as a square with rounded edges. When using images that are not cropped to square the layout looks odd. So the css should handle the cropping to preserve the layout.

Added the object-fit: cover attribute along with an additional alt attribute to improve Lighthouse Scores and Accessibility.

How Has This Been Tested?

Test locally.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have read the Contributing guide.
  • My code/comments/docs fully adhere to the Code of Conduct.
  • My change is a code change.
  • My change is a documentation change and there are NO other updates required.

@robearlam robearlam merged commit 0df1c47 into main Apr 30, 2024
7 checks passed
@robearlam robearlam deleted the fix-images branch April 30, 2024 00:24
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.

2 participants