amp-wp icon indicating copy to clipboard operation
amp-wp copied to clipboard

Cursor Change on Hover for AMP Images

Open manuelschwartze opened this issue 6 years ago • 5 comments

Feature description

I am using standard mode so my website is AMP first. It would be nice though if desktop users would se a cursor change on hover for AMP images


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry

manuelschwartze avatar Apr 08 '20 17:04 manuelschwartze

Can you share the URL for your site where this issue can be seen? A quick fix would be to add a CSS rule to add cursor:pointer. Otherwise, this may be a better issue for upstream on the amphtml project itself.

westonruter avatar Apr 08 '20 17:04 westonruter

paulreno.de is my website. I just felt that a pointer on linked image is common on desktop websites and should be implemented in the plugin for all who use AMP first sites.

manuelschwartze avatar Apr 08 '20 17:04 manuelschwartze

Yes, that does make sense. In the meantime, you can add CSS like this:

amp-img[lightbox] {
    cursor: pointer;
}

You can add this to the Customizer's Additional CSS section, though as you noted in #4551 the preview is messed up.

westonruter avatar Apr 08 '20 18:04 westonruter

I've submitted your feature request upstream: https://github.com/ampproject/amphtml/issues/27646

westonruter avatar Apr 08 '20 18:04 westonruter

Thank you!

manuelschwartze avatar Apr 08 '20 19:04 manuelschwartze