Skip to content

Commit

Permalink
Article Form UI character count improvement (#2149)
Browse files Browse the repository at this point in the history
* wrap input fields in existing class

* formatting for number

* keypress triggers count, only error used fields

* small tweak to form layouts [CV2-5052]

---------

Co-authored-by: Brian Fleming <[email protected]>
  • Loading branch information
sarahkeh and brianfleming authored Oct 9, 2024
1 parent 18b67cd commit 07abcf4
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 175 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"description": "Title for the slideout edit fact-check form",
"defaultMessage": "Edit Claim & Fact-Check Article"
},
{
"id": "articleForm.characterLimitReached",
"description": "Error message for when the character limit is reached",
"defaultMessage": "Character Limit Reached"
},
{
"id": "articleForm.saveArticleButton",
"description": "Button that saves the form data as a new article",
Expand Down Expand Up @@ -184,6 +189,11 @@
"description": "Label for article URL field",
"defaultMessage": "Article URL"
},
{
"id": "articleForm.characterCount",
"description": "Label for the character count remaining in the combined text fields",
"defaultMessage": "{count, plural, one {# character left} other {# characters left}}"
},
{
"id": "articleForm.selectLanguageLabel",
"description": "Label for input to select language",
Expand Down
Loading

0 comments on commit 07abcf4

Please sign in to comment.