Update to Material Symbols and switch to class names for icons
The switch to class names is for accessibility. Class names are not translated by browser translation plugins and not read by screen readers.
This commit is contained in:
1 parent
672a19f8f6
commit
5788f5a8b4
71 files changed
+403
-266
No files matched your search
@@ -63,7 +63,7 @@ const show = (i: number) => slider.scrollTo({
|
||||
</div>
|
||||
<div class="slider_nav">
|
||||
<button onclick={() => show(current-1)} title="Previous">
|
||||
<i class="icon">chevron_left</i>
|
||||
<i class="icon i_chevron_left"></i>
|
||||
</button>
|
||||
{#each slides as slide, i (slide.image)}
|
||||
<button class:button_highlight={i === current} onclick={() => show(i)}>
|
||||
@@ -71,7 +71,7 @@ const show = (i: number) => slider.scrollTo({
|
||||
</button>
|
||||
{/each}
|
||||
<button onclick={() => show(current+1)} title="Next">
|
||||
<i class="icon">chevron_right</i>
|
||||
<i class="icon i_chevron_right"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user