Opened 6 years ago
Closed 6 years ago
#44946 closed defect (bug) (fixed)
"post locked" info animation doesn't work as expected
Reported by: | afercia | Owned by: | afercia |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | 3.6 |
Component: | Administration | Keywords: | has-screenshots has-patch |
Focuses: | ui, accessibility | Cc: |
Description (last modified by )
Follow up to #24553
The CSS animation added in #24553 doesn't work as expected for a couple reasons:
- height "auto" can't be animated with CSS
- jQuery
delay()
works only for the jQuery effects queue, not for other methods likeempty()
The original intent of this animation was to make the "user is currently editing" info smoothly slide in and out, avoiding "jumps" in the UI that could be disturbing for users.
I'd say either the leftover code related to the animation should be removed or the animation should be fixed.
Created at WordCamp Roma 2018 contributors day.
/Cc @johnbillion
Attachments (4)
Change History (12)
#3
@
6 years ago
44946.diff is a POC to fix the animation with 2 drawbacks:
- magic number for
min-height
setTimeout()
#4
@
6 years ago
- Milestone changed from Awaiting Review to 5.3
- Owner set to afercia
- Status changed from new to assigned
Looking back at this ticket, I'd lean towards just removing the dead code originally meant for the animation. In 6 years no one complained for the missing animation, so looks like some clean-up is preferable.
#5
@
6 years ago
- Focuses accessibility added
Also: the content of .locked-indicator
is hidden only visually. Its text is announced by screen readers even when a post is not locked, which is definitely misleading (see attached screenshot).
I'd consider this a bug, as incorrect information is communicated to assistive technology users. I'd like to propose to:
- really hide both
.locked-indicator
and.locked-info
usingdisplay: none
: this will effectively hide their content also from assistive technologies - when a post is locked, reveal these elements without animation
Relevant changesets:
[24576]
[24906]
For reference, the "locked info" was moved to the first line in #38185