wittlock / ngx-image-zoom

Angular component for zoomable images
https://wittlock.github.io/ngx-image-zoom/
MIT License
133 stars 64 forks source link

Require Alternative (Alt) attribute to images for screen readers #147

Open Chinmaya-Gandhi opened 5 months ago

Chinmaya-Gandhi commented 5 months ago

Request to kindly provide a option to pass an Alternative (Alt) attribute for the images that can be zoomed for better Digital Accessibility.

Current code is

<slide class="slide" *ngFor="let image of images">
            <div class="img-zoom">
                <lib-ngx-image-zoom
                    [thumbImage]="image.src"
                    [fullImage]="image.src"
                    zoomMode="hover"
                    [enableScrollZoom]="true"
                    [enableLens]="true"
                ></lib-ngx-image-zoom>
            </div>
        </slide>

And there is no way to pass image.altText

JomaKar commented 2 months ago

believe there's one, altText and titleText, just check the readme