(core) Forms improvements: mouse selection in firefox, focus, and styling

Summary:
- Remove unused Form file (Label.ts)
- Fix Firefox-specific bug in Forms, where mouse selection wasn't working in textarea.
- Focus and set cursor in textarea on click.
- Save on blur but only when focus stays within the Grist app, as for editing cells.
- Make paragraph margins of rendered form match those in the form editor.

Test Plan: Tested manually on Firefox and Chrome; relying on existing tests that nothing broke.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D4281
This commit is contained in:
Dmitry S
2024-07-13 01:27:54 -04:00
parent 2868ee2fa1
commit 063df75204
6 changed files with 40 additions and 125 deletions

View File

@@ -165,7 +165,7 @@ const cssFormContent = styled('form', `
font-size: 10px;
}
& p {
margin: 0px;
margin: 0 0 10px 0;
}
& strong {
font-weight: 600;