Skip to content

[Color][Image] Update modal background to embedded content token - #4103

Open
Myranae wants to merge 6 commits into
mainfrom
image-long-description-color-sync
Open

[Color][Image] Update modal background to embedded content token#4103
Myranae wants to merge 6 commits into
mainfrom
image-long-description-color-sync

Conversation

@Myranae

@Myranae Myranae commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary:

Uses the new embedded content token on the image modal background.

Issue: LEMS-4462

Test plan:

  • Confirm all checks pass
  • Check chromatic snapshots are correct

…ed content token

Also remove an extra background color that was interfering with the modal background
…get modal background to stay dark across themes
@Myranae Myranae self-assigned this Aug 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

npm Snapshot

Want to try this PR's changes before it merges? Comment /snapshot below and we'll publish an npm snapshot you can install right away.

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Size Change: +25 B (0%)

Total Size: 519 kB

📦 View Changed
Filename Size Change
packages/perseus/dist/es/index.js 203 kB +25 B (+0.01%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.6 kB
packages/keypad-context/dist/es/index.js 1 kB
packages/kmath/dist/es/index.js 6.31 kB
packages/math-input/dist/es/index.js 98.6 kB
packages/math-input/dist/es/strings.js 1.63 kB
packages/perseus-core/dist/es/index.item-splitting.js 13.1 kB
packages/perseus-core/dist/es/index.js 28.3 kB
packages/perseus-editor/dist/es/index.js 106 kB
packages/perseus-linter/dist/es/index.js 10.1 kB
packages/perseus-score/dist/es/index.js 9.86 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/strings.js 12.9 kB
packages/pure-markdown/dist/es/index.js 1.39 kB
packages/simple-markdown/dist/es/index.js 6.12 kB

compressed-size-action

Comment thread packages/perseus/src/widgets/image/image-widget.module.css
@Myranae
Myranae marked this pull request as ready for review August 20, 2026 17:11

@benchristel benchristel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

…img element

This is to allow us to apply the styling to a not img element (which gets affected by the inversion filter)
The new rule is just to add the background for use behind images in the modal
/>
)}
</AssetContext.Consumer>
<div className={styles.modalImageBackground}>

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.

This line is the only difference here, but it moved the rest down. Also added the closing div at the bottom I suppose

max-height: var(--perseus-image-modal-panel-height);
}

.modal-image-container img {

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.

This style rule just got moved down and the background color got moved to its own styling rule based on a new class added above.

@Myranae
Myranae requested a review from benchristel August 21, 2026 17:14

@benchristel benchristel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants