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 👍

@36degrees 36degrees merged commit 1eb86fa into master Nov 6, 2019
@36degrees 36degrees deleted the fix-character-count-classes branch November 6, 2019 09:53
@hannalaakso hannalaakso added this to Needs review in Design System Sprint Board via automation Nov 6, 2019
@hannalaakso hannalaakso moved this from Needs review to Ready to release in Design System Sprint Board Nov 6, 2019
@NickColley NickColley added this to the v3.4.0 milestone Nov 13, 2019
@36degrees 36degrees mentioned this pull request Nov 19, 2019
@36degrees 36degrees moved this from Ready to release to Done in Design System Sprint Board Nov 19, 2019
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