gabrielcsapo / gabrielcsapo/docusaurus-plugin-image-zoom

Getting the plugin to work with ThemedImage

Open
#8 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
84
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Hi there, great plugin, thanks so much for making it!

I'm trying to get it to work with the docusaurus ThemedImage component, which I'm using for light/dark mode images as outlined [here](https://docusaurus.io/docs/markdown-features/assets#themed-images).

I tried swizzling the component and adding the `medium-zoom-image` class, but that doesn't seem to work. It now shows the cursor change on hover, but doesn't zoom. Is there another way it might be possible to get this to work?

Could this be done by changing the `selector` option in docusaurus config?

thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with Docusaurus ThemedImage and the swizzled component using the `medium-zoom-image` class. Then inspect how the plugin’s `selector` option finds images and compare that with ThemedImage’s rendered output. Done means establishing a documented configuration or supported integration path that makes themed images zoom correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.