Advanced inputs · SU-318
A character counter counts and never blocks the paste
Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.
-
Pasted text
7 characters dropped
-
Pasted text
kept in full
Review Trail Pack 28L
VerifiedYour review
Carried 14 kg over two days in the Cairngorms, and never felt it. The hip belt is properly padded, the rain cover stays put in a gale, and the side pockets take a litre bottle. My only gripe is the lid zip, which snags. I would happily buy it again, and I probably will. Easy five
280/280
CancelPost review
Review Trail Pack 28L
VerifiedYour review
Carried 14 kg over two days in the Cairngorms, and never felt it. The hip belt is properly padded, the rain cover stays put in a gale, and the side pockets take a litre bottle. My only gripe is the lid zip, which snags. I would happily buy it again, and I probably will. Easy five stars.
You have 7 characters too many
CancelPost review
-
Counter
grey 280/280
-
Overflow
tinted · 7 characters -
Counter
icon + red · 14px
What changes
- Bad
- A
287-character paste intomaxlength="280":7characters vanish mid-sentence and the counter reads a calm grey280/280. - Good
- The whole paste is kept, the last
7characters are tinted, and the border and a14pxcounter turn red with an icon:You have 7 characters too many.
The rules
-
SU-318
Character counters count and never block. Put a counter at the bottom right of the field in 14px muted text ("0/280" or "120 characters remaining"), shown from 75% of the limit when the limit is long. Never stop typing or paste with
maxlength: over the limit, the counter turns to the error color with an icon and says "You have 7 characters too many", and the pasted text is kept.