-
Notifications
You must be signed in to change notification settings - Fork 613
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(storefront): STRF-5678 fixed the check for max length in create account fields #1647
Conversation
…ccount form fields
Autotagging @bigcommerce/storefront-team @davidchin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @junedkazi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bc-nataliya can we please verify if we need to do the same for text area as well ?
https://github.com/bigcommerce/cornerstone/blob/master/templates/components/common/forms/multiline.html
@junedkazi multiline doesn't have an option of setting max length |
@@ -2,5 +2,5 @@ | |||
<label class="form-label" for="{{id}}_input">{{label}} | |||
{{#if required}}<small>{{lang 'common.required' }}</small>{{/if}} | |||
</label> | |||
<input type="text" id="{{id}}_input" data-label="{{label}}" name="{{name}}" {{#if value}} value="{{value}}"{{/if}} {{#if placeholder}} placeholder="{{placeholder}}"{{/if}} class="form-input" aria-required="{{required}}" {{#if private_id}}data-field-type="{{private_id}}"{{/if}}> | |||
<input type="text" id="{{id}}_input" data-label="{{label}}" name="{{name}}" {{#if value}} value="{{value}}"{{/if}} {{#if placeholder}} placeholder="{{placeholder}}"{{/if}} class="form-input" aria-required="{{required}}" {{#if private_id}}data-field-type="{{private_id}}"{{/if}} {{#if maxlength}}maxlength="{{maxlength}}"{{/if}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could consider putting the space inside the {{#if}}
block so it only makes it to the markup if this argument is used 🍹
What?
Top 20 bug reports that while user can set the max length for the account sign up fields it is not respected in the storefront
Tickets / Documentation
https://jira.bigcommerce.com/browse/STRF-5678
Screenshots (if appropriate)
To test:
ping @bigcommerce/storefront-team @bigcommerce/artemis-dt