Layout & CSS Styling for amp-inline-gallery & amp-base-carousel
Describe the new feature or change to an existing feature you'd like to see
Currently, if an amp-base-carousel is placed inside an amp-inline-gallery the rendered component will show margins on the side of the carousel - we want this to be able to bleed to the full width of the amp-inline-gallery container. In addition it's not an easy task to hide amp-base-carousel arrows and change CSS styling for amp-inline-gallery pagination.
Describe alternatives you've considered
For the amp-base-carousel to extend to the full width of the amp-inline-gallery I've set negative margins on the amp-base-carousel.
amp-base-carousel { margin-left: -10px; margin-right: -10px; }
The slider arrows were not easy to hide. With the regular amp-carousel component it was possible by just targeting the arrows via their class, however this seems to be ignored for amp-base-carousel and we've had to do the following to try to work around it.
button[class$="base-carousel-arrow"] { display: none; }
A similar CSS workaround to the above was also used for pagination indicators.
[i-amphtml-inline-gallery-pagination-dot-active] [class$="dot"] { background: #fff; border: 1px solid #767676; }
[i-amphtml-inline-gallery-pagination-dot-active="true"] [class$="dot"] { background: #000; }
Ideally, at least for the last two workarounds we would like to see a way to target a class rather than use attribute selectors so as to reduce CSS length in the AMP.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.