kiesraad / abacus

Abacus, software voor verkiezingsuitslagen en zetelverdeling
https://kiesraad-abacus.pages.dev
European Union Public License 1.2
8 stars 2 forks source link

Make sure tooltip is linked to input field with error and is shown under the input field even when scrolling the page #73

Open Lionqueen94 opened 2 months ago

Lionqueen94 commented 2 months ago

Reproduction steps:

To discuss: What should the tooltip say when pasting an image or a file? Currently it says "Je probeert te plakken. Je kunt hier alleen cijfers invullen." (example here) Would be nice if the tooltip mentions what you're trying to paste, as it does in the other cases.

jorisleker commented 2 months ago

Not sure if 're-rendered' is the right phrasing for this issue 👼 . We want the tooltip it to stay with the input field when scrolling. Re-rendering is a solution, not necessarily the solution.

Lionqueen94 commented 2 months ago

Title changed based on @jorisleker comment

jschuurk-kr commented 2 months ago

For testing copy-paste behavior in Playwright:

Writing to the clipboard with navigator.clipboard.writeText() and then pasting with press('Control+v') works on Chrome and Firefox, not on Safari. Does not work as in: the "paste" does not happen.