discourse/app/assets/stylesheets/common
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
..
admin UX: move vertical admin plugin nav to horizontal overflow nav (#20319) 2023-02-17 10:21:30 -05:00
base UX: userstatus limit handling in UI (#20343) 2023-02-17 06:54:56 +01:00
components FEATURE: Add word count and indicator when exceeded max (#19367) 2023-02-20 12:06:43 +01:00
foundation UX: allow sidebar to appear inline down to 768px (#20271) 2023-02-14 09:51:42 +11:00
modal FEATURE: integrate DnD with user status (#19410) 2022-12-16 16:35:39 +04:00
select-kit Revert "Revert "Select-kit > use new color vars" (#20042)" (#20345) 2023-02-17 07:29:26 +01:00
d-editor.scss DEV: allow themes to more easily set border-radii (#19037) 2022-11-16 11:35:09 -05:00
font-variables.scss FIX: Use rem for font sizes in post headings (#13720) 2021-07-14 11:15:58 +10:00
input_tip.scss DEV: Refactor popup-tip component (#15257) 2021-12-13 11:22:02 -05:00
printer-friendly.scss UX: print view always shows 0 votes, hide it (#15901) 2022-03-08 15:35:31 +01:00
software-update-prompt.scss UX: Add hover style to refresh-page dismiss button (#15711) 2022-02-01 20:04:46 +01:00
topic-entrance.scss fix topic entrance button layout (#11887) 2021-01-28 15:44:01 -05:00
topic-timeline.scss UX: Fix timeline-handle positioning (#20217) 2023-02-08 12:01:14 -06:00
whcm.scss A11Y: Improve accessibility in WHCM themes (#18606) 2022-10-17 07:07:46 -07:00