[wp-trac] [WordPress Trac] #39958: Comment reply/cancel links work badly when comment form is above the comment list
WordPress Trac
noreply at wordpress.org
Thu Feb 23 22:36:26 UTC 2017
#39958: Comment reply/cancel links work badly when comment form is above the
comment list
--------------------------+-----------------------------
Reporter: smerriman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
If the comment form is below the list of comments, as in default WP
themes, reply and cancel links work as follows:
When you click reply, the form moves directly under the comment (page
doesn't scroll).
When you click cancel, the form jumps back to original position (page
doesn't scroll).
Consider any theme where the comment form is output before the list of
comments. (This is a standard request, to make it easier for people to
comment without having to scroll through lots of existing comments first).
When you click reply, the form moves from its original position to under
the comment, causing the whole page to scroll up a significant amount. The
textarea gets focus, meaning if it has scrolled off the top of the screen
as is quite likely, the page jumps to ensure it is visible, but you don't
see important things like the reply heading, cancel link, or comment
label.
When you click cancel, the form reverts back to its original position,
jumping the whole page content down significantly, often leaving you in a
completely random part of the page.
This is very disorientating from a user perspective. I'm not sure what a
workaround is - perhaps some way of saving your vertical position prior to
a click and restoring it after a click to make it look like there is no
jump.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39958>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list