From b6d100573873e8fc4b81bfe4ee97a6238e22d38a Mon Sep 17 00:00:00 2001 From: Jack Reed Date: Thu, 3 Aug 2017 11:01:53 -0700 Subject: [PATCH 1/2] add alt attribute to img thumbs --- src/GalleryComponent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GalleryComponent.ts b/src/GalleryComponent.ts index cc1558a..12d52a3 100644 --- a/src/GalleryComponent.ts +++ b/src/GalleryComponent.ts @@ -422,7 +422,7 @@ namespace IIIFComponents { if (visible !== "false") { $wrap.addClass('loading'); const src: string = $thumb.attr('data-src'); - const $img: JQuery = $(''); + const $img: JQuery = $(''); // fade in on load. $img.hide().load(function () { $(this).fadeIn(fadeDuration, function () { @@ -596,4 +596,4 @@ namespace IIIFComponents.GalleryComponent { } else { g.IIIFComponents.GalleryComponent = IIIFComponents.GalleryComponent; } -})(global); \ No newline at end of file +})(global); From 6bc4ee78737fa34dc9fba6eef631ebe6b967e1e9 Mon Sep 17 00:00:00 2001 From: Jack Reed Date: Thu, 3 Aug 2017 11:05:41 -0700 Subject: [PATCH 2/2] add aria labels for form elements that are unlabeled --- src/GalleryComponent.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GalleryComponent.ts b/src/GalleryComponent.ts index 12d52a3..450a3e7 100644 --- a/src/GalleryComponent.ts +++ b/src/GalleryComponent.ts @@ -44,13 +44,13 @@ namespace IIIFComponents { this._$rightOptions = $('
'); this._$header.append(this._$rightOptions); - this._$sizeDownButton = $(''); + this._$sizeDownButton = $(''); this._$leftOptions.append(this._$sizeDownButton); - this._$sizeRange = $(''); + this._$sizeRange = $(''); this._$leftOptions.append(this._$sizeRange); - this._$sizeUpButton = $(''); + this._$sizeUpButton = $(''); this._$leftOptions.append(this._$sizeUpButton); this._$multiSelectOptions = $('
');