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

Add spellcheck option #1859

Merged
merged 4 commits into from
Jul 14, 2020
Merged

Add spellcheck option #1859

merged 4 commits into from
Jul 14, 2020

Conversation

vanitabarrett
Copy link
Contributor

@vanitabarrett vanitabarrett commented Jul 10, 2020

Resolves #1832

What

Adds a Boolean spellcheck param to the input and textarea components

Why

Currently, users can add a spellcheck attribute to these components by using the attributes param and passing the String value, for example:

attributes: {
    spellcheck: "true"
}

We want to make the spellcheck attribute more explicit. Making it a Boolean also leaves less room for human error.

Screenshot 2020-07-10 at 10 58 54

Examples:

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1859 July 10, 2020 09:38 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1859 July 10, 2020 09:47 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1859 July 10, 2020 09:48 Inactive
Vanita Barrett added 3 commits July 10, 2020 11:01
The spellcheck attribute can currently be set through the attributes field for the textarea component.

This commit makes the spellcheck option more explicit and means it can be set directly without using the attribute field.
The spellcheck attribute can currently be set through the attributes field for the input component.

This commit makes the spellcheck option more explicit and means it can be set directly without using the attribute field.
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-review-pr-1859 July 10, 2020 10:03 Inactive
@vanitabarrett vanitabarrett marked this pull request as ready for review July 10, 2020 10:04
vanitabarrett pushed a commit to alphagov/govuk-design-system that referenced this pull request Jul 10, 2020
The spellcheck attribute was added for the input and textarea components in this PR: alphagov/govuk-frontend#1859

This commit updates the associated documentation in the design system to use this new functionality
vanitabarrett pushed a commit to alphagov/govuk-design-system that referenced this pull request Jul 10, 2020
The spellcheck attribute was added for the input and textarea components in this PR: alphagov/govuk-frontend#1859

This commit updates all examples in the design system to use this new functionality
vanitabarrett pushed a commit to alphagov/govuk-design-system that referenced this pull request Jul 10, 2020
The spellcheck attribute was added for the input and textarea components in this PR: alphagov/govuk-frontend#1859

This commit updates the associated documentation in the design system to use this new functionality
vanitabarrett pushed a commit to alphagov/govuk-design-system that referenced this pull request Jul 10, 2020
The spellcheck attribute was added for the input and textarea components in this PR: alphagov/govuk-frontend#1859

This commit updates the associated documentation in the design system to use this new functionality
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.

This looks great, thanks @vanitabarrett 👍

@vanitabarrett vanitabarrett merged commit 436a599 into master Jul 14, 2020
@vanitabarrett vanitabarrett deleted the add-spellcheck-option branch July 14, 2020 09:03
@joelanman
Copy link
Contributor

nice work!

vanitabarrett pushed a commit that referenced this pull request Jul 17, 2020
We added a new spellcheck param to the textarea component in #1859

However, we forgot to add the param to the character count component, which meant it couldn't be passed through to the textarea. This adds the missing param.
vanitabarrett pushed a commit that referenced this pull request Jul 17, 2020
We added a new spellcheck param to the textarea component in #1859

However, we forgot to add the param to the character count component, which meant it couldn't be passed through to the textarea. This adds the missing param.
vanitabarrett pushed a commit that referenced this pull request Jul 17, 2020
We added a new spellcheck param to the textarea component in #1859

However, we forgot to add the param to the character count component, which meant it couldn't be passed through to the textarea. This adds the missing param.
vanitabarrett pushed a commit that referenced this pull request Jul 17, 2020
We added a new spellcheck param to the textarea component in #1859

However, we forgot to add the param to the character count component, which meant it couldn't be passed through to the textarea. This adds the missing param.
vanitabarrett pushed a commit that referenced this pull request Jul 17, 2020
We added a new spellcheck param to the textarea component in #1859

However, we forgot to add the param to the character count component, which meant it couldn't be passed through to the textarea. This adds the missing param.
vanitabarrett pushed a commit that referenced this pull request Jul 17, 2020
We added a new spellcheck param to the textarea component in #1859

However, we forgot to add the param to the character count component, which meant it couldn't be passed through to the textarea. This adds the missing param.
@vanitabarrett vanitabarrett mentioned this pull request Jul 29, 2020
andymantell added a commit to andymantell/govuk-frontend-jinja that referenced this pull request Aug 10, 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.

Add 'spellcheck' option to text macros
4 participants