summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/products/ProductView.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-10-16 02:22:50 +0200
committerJules Laplace <julescarbon@gmail.com>2019-10-16 02:22:50 +0200
commit335e61243d45c4c2eb5d030a8ee5f85c2ddf35f3 (patch)
tree0df18bcb17eafad1b6bb7a879586993f2d3a0ce0 /StoneIsland/www/js/lib/products/ProductView.js
parentfb383f5bdca2dc3865daa7e749fe5a340151cf7d (diff)
a11y updates
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
-rwxr-xr-xStoneIsland/www/js/lib/products/ProductView.js2
1 files changed, 2 insertions, 0 deletions
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()