question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add scrollable attribute to amp-image-lightbox

See original GitHub issue

amp-lightbox supports a scrollable attribute https://www.ampproject.org/docs/reference/components/amp-lightbox

can the scrollable attribute also be supported in amp-image-lightbox?

/jay gray

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
cathyxzcommented, Jan 9, 2018

Hi @jaygray0919 thank you for the example. I think we can find a way to make that work.

Lightbox 2.0 will have a slightly different API. It’s currently under the extension <amp-lightbox-viewer>, and used with the lightbox attribute (though this API may change pending review). The way you would use it is to include

<script async custom-element='amp-lightbox-viewer' src='https://cdn.ampproject.org/v0/amp-lightbox-viewer-0.1.js'></script>

and add a lightboxed attribute to your amp-carousel.

1reaction
jaygray0919commented, Dec 19, 2017

here is a sample SVG:

flavonoids.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you add a scroll bar to a div? - Stack Overflow
You need to add style="overflow-y:scroll;" to the div tag. (This will force a scrollbar on the vertical). If you only want a scrollbar...
Read more >
HTML | <iframe> scrolling Attribute - GeeksforGeeks
The HTML <iframe> scrolling Attribute is used to specify whether the scrollbar will be displayed or not in the <Iframe> Element.
Read more >
ARIA: scrollbar role - Accessibility - MDN Web Docs - Mozilla
The aria-controls attribute references the id of the scrollable ... use this property to make the scrollbar value more understandable to ...
Read more >
Scrollable - Lightning Design System
Make a containing box scrollable when scrolling is available. About Scrollable#. Use the scrollable utility when you need to provide scrolling within a...
Read more >
How to add scrollbar to div - Educative.io
Fortunately, CSS has a property called overflow to deal with clipped data due to restricted dimensions of the container. You can configure overflow...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found