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

Fix classes on character count when in error state #1631

Merged
merged 1 commit into from
Nov 6, 2019

Conversation

36degrees
Copy link
Contributor

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

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1631 November 6, 2019 08:53 Inactive
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
Copy link
Member

@hannalaakso hannalaakso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Missing space before CSS class
4 participants