[frontend] Better autocapitalize/spellcheck settings on forms (#3077)

This commit is contained in:
tobi 2024-07-08 09:38:27 +02:00 committed by GitHub
commit bbbf6ebe37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 205 additions and 38 deletions

View file

@ -126,6 +126,8 @@ export function CategorySelect({ field, children }: PropsWithChildren<CategorySe
items={categoryItems}
label="Category"
placeholder="e.g., reactions"
autoCapitalize="none"
spellCheck="false"
>
{children}
</ComboBox>

View file

@ -117,6 +117,8 @@ export default function NewEmojiForm() {
<TextInput
field={form.shortcode}
label="Shortcode, must be unique among the instance's local emoji"
autoCapitalize="none"
spellCheck="false"
{...{pattern: "^\\w{2,30}$"}}
/>

View file

@ -116,6 +116,8 @@ function EmojiList({ emoji }: EmojiListParams) {
field={filterField}
name="emoji-shortcode"
placeholder="Search"
autoCapitalize="none"
spellCheck="false"
/>
</div>
<div className="entries scrolling">

View file

@ -52,9 +52,10 @@ export default function StealThisLook({ emojiCodes }) {
</label>
<div className="row">
<input
type="text"
id="url"
name="url"
type="url"
pattern="(http|https):\/\/.+"
onChange={urlField.onChange}
value={urlField.value}
/>