@ministryofjustice/frontend
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -714,7 +714,7 @@ ;(function(root, factory) { | ||
html += '<div class="govuk-summary-list__row moj-multi-file-upload__row">'; | ||
html += ' <dd class="govuk-summary-list__value moj-multi-file-upload__message">'; | ||
html += ' <div class="govuk-summary-list__value moj-multi-file-upload__message">'; | ||
html += '<span class="moj-multi-file-upload__filename">'+file.name+'</span>'; | ||
html += '<span class="moj-multi-file-upload__progress">0%</span>'; | ||
html += ' </dd>'; | ||
html += ' <dd class="govuk-summary-list__actions moj-multi-file-upload__actions"></dd>'; | ||
html += ' </div>'; | ||
html += ' <div class="govuk-summary-list__actions moj-multi-file-upload__actions"></div>'; | ||
html += '</div>'; | ||
@@ -878,3 +878,3 @@ return html; | ||
MOJFrontend.PasswordReveal.prototype.createButton = function() { | ||
this.button = $('<button type="button" class="govuk-button govuk-button--secondary moj-password-reveal__button">Show</button>'); | ||
this.button = $('<button type="button" class="govuk-button govuk-button--secondary moj-password-reveal__button">Show <span class="govuk-visually-hidden">password</span></button>'); | ||
this.container.append(this.button); | ||
@@ -887,6 +887,6 @@ this.button.on('click', $.proxy(this, 'onButtonClick')); | ||
this.el.type = 'text'; | ||
this.button.text('Hide'); | ||
this.button.html('Hide <span class="govuk-visually-hidden">password</span>'); | ||
} else { | ||
this.el.type = 'password'; | ||
this.button.text('Show'); | ||
this.button.html('Show <span class="govuk-visually-hidden">password</span>'); | ||
} | ||
@@ -893,0 +893,0 @@ }; |
@@ -102,7 +102,7 @@ if(MOJFrontend.dragAndDropSupported() && MOJFrontend.formDataSupported() && MOJFrontend.fileApiSupported()) { | ||
html += '<div class="govuk-summary-list__row moj-multi-file-upload__row">'; | ||
html += ' <dd class="govuk-summary-list__value moj-multi-file-upload__message">'; | ||
html += ' <div class="govuk-summary-list__value moj-multi-file-upload__message">'; | ||
html += '<span class="moj-multi-file-upload__filename">'+file.name+'</span>'; | ||
html += '<span class="moj-multi-file-upload__progress">0%</span>'; | ||
html += ' </dd>'; | ||
html += ' <dd class="govuk-summary-list__actions moj-multi-file-upload__actions"></dd>'; | ||
html += ' </div>'; | ||
html += ' <div class="govuk-summary-list__actions moj-multi-file-upload__actions"></div>'; | ||
html += '</div>'; | ||
@@ -109,0 +109,0 @@ return html; |
@@ -17,3 +17,3 @@ MOJFrontend.PasswordReveal = function(element) { | ||
MOJFrontend.PasswordReveal.prototype.createButton = function() { | ||
this.button = $('<button type="button" class="govuk-button govuk-button--secondary moj-password-reveal__button">Show</button>'); | ||
this.button = $('<button type="button" class="govuk-button govuk-button--secondary moj-password-reveal__button">Show <span class="govuk-visually-hidden">password</span></button>'); | ||
this.container.append(this.button); | ||
@@ -26,7 +26,7 @@ this.button.on('click', $.proxy(this, 'onButtonClick')); | ||
this.el.type = 'text'; | ||
this.button.text('Hide'); | ||
this.button.html('Hide <span class="govuk-visually-hidden">password</span>'); | ||
} else { | ||
this.el.type = 'password'; | ||
this.button.text('Show'); | ||
this.button.html('Show <span class="govuk-visually-hidden">password</span>'); | ||
} | ||
}; |
{ | ||
"name": "@ministryofjustice/frontend", | ||
"description": "The MOJ Frontend contains the code you need to start building user interfaces for UK Ministry of Justice government services.", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"main": "moj/all.js", | ||
@@ -6,0 +6,0 @@ "sass": "moj/all.scss", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
615921