Skip to content

Commit

Permalink
[SITES-13777] Added spellcheck to Form Text and Textarea (#2553)
Browse files Browse the repository at this point in the history
https://jira.corp.adobe.com/browse/SITES-13777
Co-authored-by: Igor Myronenko <igor@adobe.com>
  • Loading branch information
myronenko and Igor Myronenko authored Jul 21, 2023
1 parent b49e22c commit 54758cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
readonly="${text.readOnly}"
required="${text.required}"
rows="${text.rows}"
spellcheck="true"
data-sly-attribute.aria-describedby="${text.helpMessage ? [text.id, 'helpMessage'] : '' @ join = '-'}">${text.value}</textarea>
<input data-sly-test="${!useTextarea}"
class="cmp-form-text__text"
Expand All @@ -43,5 +44,6 @@
value="${text.value}"
readonly="${text.readOnly}"
required="${text.required}"
spellcheck="true"
data-sly-attribute.aria-describedby="${text.helpMessage ? [text.id, 'helpMessage'] : '' @ join = '-'}"/>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
required="${text.required}"
readonly="${text.readOnly}"
rows="${text.rows}"
spellcheck="true"
placeholder="${text.placeholder}"
aria-label="${text.hideTitle && text.title}">${text.value}</textarea>
<input data-sly-test="${!useTextarea}"
Expand All @@ -34,6 +35,7 @@
value="${text.value}"
required="${text.required}"
readonly="${text.readOnly}"
spellcheck="true"
placeholder="${text.placeholder}"
aria-label="${text.hideTitle && text.title}"/>
<span visible-when-invalid="valueMissing"
Expand Down

0 comments on commit 54758cd

Please sign in to comment.