Skip to content

Commit

Permalink
fix: carousel should use ul/li for a11y (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson authored Feb 10, 2019
1 parent 9cb15a3 commit 2884955
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/routes/_components/dialog/components/MediaDialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
className="media-modal-dialog"
>
<div class="media-container">
<div class="media-scroll" ref:scroller>
<ul class="media-scroll" ref:scroller>
{#each mediaItems as media}
<div class="media-scroll-item">
<li class="media-scroll-item">
<div class="media-scroll-item-inner">
<div class="media-scroll-item-inner-inner">
{#if canPinchZoom}
Expand All @@ -20,9 +20,9 @@
{/if}
</div>
</div>
</div>
</li>
{/each}
</div>
</ul>
<div class="media-controls-outside">
{#if canPinchZoom}
<IconButton
Expand Down Expand Up @@ -98,6 +98,12 @@
-ms-overflow-style: none;
}

ul.media-scroll {
padding: 0;
margin: 0;
list-style: none;
}

.media-scroll::-webkit-scrollbar {
display: none;
}
Expand Down

0 comments on commit 2884955

Please sign in to comment.