Skip to content
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

Closed
dabd opened this issue Nov 5, 2019 · 0 comments · Fixed by #1631
Closed

Missing space before CSS class #1630

dabd opened this issue Nov 5, 2019 · 0 comments · Fixed by #1631
Assignees
Labels
🐛 bug Something isn't working the way it should (including incorrect wording in documentation) character count
Milestone

Comments

@dabd
Copy link

dabd commented Nov 5, 2019

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).

@NickColley 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 36degrees self-assigned this Nov 6, 2019
@36degrees 36degrees removed the awaiting triage Needs triaging by team label Nov 6, 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
@36degrees 36degrees added this to the Next milestone Nov 7, 2019
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
Projects
Development

Successfully merging a pull request may close this issue.

3 participants