discourse/plugins/chat/assets/stylesheets
Keegan George 9c29d688e7
FEATURE: Add word count and indicator when exceeded max (#19367)
**This PR creates a new core reusable component wraps a character counter around any input.**

The component accepts the arguments: `max` (the maximum character limit), `value` (the value of text to be monitored).

It can be used for example, like so:
```hbs
  <CharCounter @max="50" @value={{this.charCounterContent}}>
    <textarea
      placeholder={{i18n "styleguide.sections.char_counter.placeholder"}}
      {{on "input" (action (mut this.charCounterContent) value="target.value")}}
      class="styleguide--char-counter"></textarea>
  </CharCounter>
```

**This PR also:**
1. Applies this component to the chat plugins edit channel's *Edit Description** modal, thereby replacing the simple text area which provided no visual indication when text exceeded the max allowed characters.
2. Adds an example to the `/styleguide` route
2023-02-20 12:06:43 +01:00
..
common FEATURE: Add word count and indicator when exceeded max (#19367) 2023-02-20 12:06:43 +01:00
desktop FIX: correct sidebar and chat height on DiscourseHub (#20323) 2023-02-16 15:59:09 +11:00
mixins
mobile UX: userstatus limit handling in UI (#20343) 2023-02-17 06:54:56 +01:00
colors.scss
sidebar-extensions.scss DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00