Skip to content

feat(ui-card,ui-scripts,ui): add ImageCard component - #2767

Open
HerrTopi wants to merge 2 commits into
masterfrom
imageCard
Open

HerrTopi wants to merge 2 commits into
masterfrom
imageCard

Conversation

@HerrTopi

@HerrTopi HerrTopi commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Bump instructure-design-tokens to v2.2.0, which ships the ImageCard tokens.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2

QR code for preview link

🚀 View preview at
https://instructure.design/pr-preview/pr-2767/

Built to branch gh-pages at 2026-10-28 14:45 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions

Copy link
Copy Markdown
Contributor

Visual regression report

Cypress suite: ✅ Passing

Visual diff: ✅ No changes.

Status Count
Unchanged 108
Changed 0
New 3
Removed 0

Accessibility (axe): ✅ No violations.

📊 View full report — click a screenshot's ⚠ badge to see each violation boxed on the image, with the offending element named and contrast failures shown as color swatches.

Baselines come from the visual-baselines branch. They refresh on every merge to master. The Cypress suite line covers the a11y and console-error assertions — a ❌ there means the suite found real issues even if the visual diff is clean.

github-actions Bot pushed a commit that referenced this pull request Oct 28, 2026
@HerrTopi HerrTopi self-assigned this Oct 28, 2026

@adamlobler adamlobler left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Everything looks great! Just one minor thing: since this code is likely to be copied, I’d prefer to use the secondary text color for the card content texts in the examples.

src={placeholderImage(250, 250)}
alt="A gray placeholder square"
>
<Text variant="content">Content goes here.</Text>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

<Text color="secondary" variant="content">Content goes here.</Text>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

src={placeholderImage(600, 340)}
alt="A gray placeholder"
>
<Text variant="content">Narrower than the medium breakpoint.</Text>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

<Text color="secondary" variant="content" >Narrower than the medium breakpoint.</Text>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

src={placeholderImage(600, 340)}
alt="A gray placeholder"
>
<Text variant="content">Between the two breakpoints.</Text>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

<Text color="secondary" variant="content">Between the two breakpoints.</Text>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

src={placeholderImage(600, 340)}
alt="A gray placeholder"
>
<Text variant="content">Wider than the large breakpoint.</Text>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

<Text color="secondary" variant="content">Wider than the large breakpoint.</Text>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread packages/ui-card/src/ImageCard/v1/README.md Outdated
Comment thread packages/ui-card/src/ImageCard/v1/README.md
Comment thread packages/ui-card/src/ImageCard/v1/README.md Outdated
Comment thread regression-test/src/app/imagecard/page.tsx Outdated
Comment thread regression-test/src/app/imagecard/page.tsx Outdated
Comment thread regression-test/src/app/imagecard/page.tsx
<div {...passthroughProps(rest)} css={styles?.card} ref={ref}>
<div css={styles?.container}>
<img src={src} alt={alt} css={styles?.img} />
<Heading variant={headingVariantsBySize[size]}>{title}</Heading>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

from out own recommendation:

"For legacy reasons, each variant has a default level set. This is not the recommended way and will be removed in a later major release. Please always specify the level!"

is this OK to always use there a h3? wont it mess up page layout? shouldnt this be a prop?

@HerrTopi HerrTopi Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good idea. Added new prop

Comment thread packages/ui-card/src/ImageCard/v1/index.tsx
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
github-actions Bot pushed a commit that referenced this pull request Oct 28, 2026

This branch has not been deployed

No deployments
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