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 character count shrinking as you go over limit #1912

Merged
merged 2 commits into from
Aug 13, 2020

Conversation

36degrees
Copy link
Contributor

@36degrees 36degrees commented Aug 13, 2020

The character count still compensates for the error state having a thicker border, by reducing the padding by 2px when the --error modifier is applied.

Since we removed the thicker border from the error state In 6bdca06, this now 'over-compensates', causing the padding on the character count's textarea to shrink by 2px when the user goes over the character limit.

Remove the padding override on the --error modifier as it's no longer needed.

👉🏻 Preview

Fixes #1910

The character count still compensates for the error state having a thicker border, by reducing the padding by 2px when the `--error` modifier is applied.

Since we removed the thicker border from the error state In 6bdca06, this now 'over-compensates', causing the padding on the character count's textarea to shrink by 2px when the user goes over the character limit.

Remove the padding override on the `--error` modifier as it's no longer needed.
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1912 August 13, 2020 09:16 Inactive
@36degrees 36degrees merged commit bd2f03d into master Aug 13, 2020
@36degrees 36degrees deleted the fix-character-count-shrinking branch August 13, 2020 10:50
@36degrees 36degrees mentioned this pull request Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Character count size changes when error state is applied
3 participants