[Feature request] add logout confirmation #368
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
i keep fat fingering the logout button when trying to search for stuff on mobile
Describe the solution you'd like
add a logout confirmation. we probably don't need javascript for this, we could do it with some css trickery. the details tag seems good for this, set a summary tag as the logout button, and change the text with
content: 'whatever'anddetails[open] summaryfor a cancel button when clicked and hide the real logout button inside the details elementDescribe alternatives you've considered
get good, skill issue
Additional context
while you could use the popover api for this, that's a fairly recent thing so i wouldn't to keep older browser support.
wait, would this issue count as an enhancement? i forgot those existed.
whatever, i've hastily thrown together something that works with psudo elements. while i should probably submit a pull request, this likely isn't a good solution, i have no idea how this repo functions, and it's 7 am, and i haven't slept.
html:
css:
this is what it looks like in practice. maybe the wording could be different? my brain is too fried to come up with anything else.
a big issue with all this is accessibility, because some screen readers don't detect things set with css content