moj-analytical-services / shinyGovstyle

Apply GOV.UK styled components and formats in shiny
https://moj-analytical-services.github.io/shinyGovstyle/
40 stars 7 forks source link

Word limit (text_area_Input) - Includes default label in word count #58

Open glenn-christmas opened 1 year ago

glenn-christmas commented 1 year ago

text_area_Input() word limit appears to include the label within the word limit (even if deleted). This has caused some confusion with app users who e.g. submit 299 words in a text box with a 300 word limit who are then told their submission exceeds the word count.

We will amend our word limits to reflect the count of the words in the label string to avoid this, but we only became aware this would be required after a customer mentioned their problem to us.

Please can either the functionality or the documentation be amended to reflect this issue?