From 335e61243d45c4c2eb5d030a8ee5f85c2ddf35f3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 16 Oct 2019 02:22:50 +0200 Subject: a11y updates --- StoneIsland/www/js/lib/products/ProductView.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'StoneIsland/www/js/lib/products/ProductView.js') diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 4320043c..f834b1c5 100755 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -370,12 +370,14 @@ var ProductView = ScrollableView.extend({ set_size_label: function(size_label){ this.$size.show() this.$sizeLabel.html(size_label) + this.$size.attr('aria-label', 'Tap to select size. Current size: ' + size_label) }, set_color_label: function(color_label){ if (color_label) { this.$color.show() this.$colorLabel.html(color_label) + this.$color.attr('aria-label', 'Tap to select color. Current color: ' + color_label) } else { this.$color.hide() -- cgit v1.2.3-70-g09d2