Skip to content

Commit

Permalink
Update boolean attribute rule comment
Browse files Browse the repository at this point in the history
We fixed the current example in alphagov/govuk-frontend#2830
  • Loading branch information
colinrotherham committed Sep 1, 2023
1 parent ecc1307 commit d540a4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .htmlvalidate.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
extends: ['html-validate:recommended'],
rules: {
// We don't use boolean attributes consistently – buttons currently
// use disabled="disabled"
// Allow components to set boolean attributes with empty values
// e.g. using `params.attributes` to set <button disabled="">
'attribute-boolean-style': 'off',

// Allow for multiple buttons in the same form to have the same name
Expand Down

0 comments on commit d540a4e

Please sign in to comment.