-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing space before CSS class #1630
Labels
🐛 bug
Something isn't working the way it should (including incorrect wording in documentation)
character count
Milestone
Comments
NickColley
added
🐛 bug
Something isn't working the way it should (including incorrect wording in documentation)
awaiting triage
Needs triaging by team
labels
Nov 5, 2019
36degrees
added a commit
that referenced
this issue
Nov 6, 2019
The template correctly adds whitespace between classnames when either the `—error` modifier is added or when custom classes are added, but not when both are added. This means for example that if you were passing the custom class `app-character-count--custom-modifier` to the character count component whilst it was in an error state, the resulting class attribute would be `govuk-js-character-count govuk-textarea--errorapp-character-count--custom-modifier` – neither the error styling nor the custom class would be correctly applied. Fixes #1630
36degrees
added a commit
that referenced
this issue
Nov 6, 2019
The template correctly adds whitespace between classnames when either the `—error` modifier is added or when custom classes are added, but not when both are added. This means for example that if you were passing the custom class `app-character-count--custom-modifier` to the character count component whilst it was in an error state, the resulting class attribute would be `govuk-js-character-count govuk-textarea--errorapp-character-count--custom-modifier` – neither the error styling nor the custom class would be correctly applied. Fixes #1630
m-green
pushed a commit
that referenced
this issue
Nov 13, 2019
The template correctly adds whitespace between classnames when either the `—error` modifier is added or when custom classes are added, but not when both are added. This means for example that if you were passing the custom class `app-character-count--custom-modifier` to the character count component whilst it was in an error state, the resulting class attribute would be `govuk-js-character-count govuk-textarea--errorapp-character-count--custom-modifier` – neither the error styling nor the custom class would be correctly applied. Fixes #1630
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🐛 bug
Something isn't working the way it should (including incorrect wording in documentation)
character count
The following https://github.com/alphagov/govuk-frontend/blob/master/src/govuk/components/character-count/template.njk#L14 is missing a space before the
(params.classes if params.classes)
.The text was updated successfully, but these errors were encountered: