Make WordPress Core

Opened 12 years ago

Closed 11 years ago

#26611 closed defect (bug) (invalid)

themes.php: Weird cursor behaviour in disabled element

Reported by: latz's profile Latz Owned by:
Milestone: Priority: normal
Severity: trivial Version: 3.8
Component: Themes Keywords:
Focuses: administration Cc:

Description

If you're at the first or last theme in the theme details popup one of the arrows is disabled. If the cursor moves over the disabled arrow it changes to text style.

Two possible solutions:
a) Cursor changes to "pointer"
b) Cursor doesn't change at all and stays default.

Attachments (3)

cursor.png (3.5 KB) - added by Latz 12 years ago.
26611.patch (412 bytes) - added by bcworkz 12 years ago.
26611.diff (1.3 KB) - added by obenland 11 years ago.

Download all attachments as: .zip

Change History (13)

@Latz
12 years ago

#1 @Latz
12 years ago

  • Keywords needs-patch added
  • Severity changed from normal to trivial

#2 @matveb
12 years ago

Setting user-select to none on the disabled class should be enough.

@bcworkz
12 years ago

#3 @bcworkz
12 years ago

  • Keywords has-patch needs-testing added; needs-patch removed

cursor: default; does it. Some of you ought to poke about and be sure this doesn't do something funky elsewhere. I couldn't find anything, but...

#4 @jeremyfelt
12 years ago

  • Component changed from Administration to Themes
  • Focuses admin added

#5 follow-up: @obenland
11 years ago

I can't reproduce the text cursor in latest Chrome and FF. The element is still focusable though.
Can we instead of (or in addition to) adding the disabled class, add an actual disabled attribute?

#6 in reply to: ↑ 5 @Latz
11 years ago

Replying to obenland:

I can't reproduce the text cursor in latest Chrome and FF. The element is still focusable though.

You're right, the text cursor problem has gone. Seems to have been a browser error (for my shame I just tested it only in FF).

@obenland
11 years ago

#7 @obenland
11 years ago

  • Keywords needs-testing removed
  • Milestone changed from Awaiting Review to 4.2

26611.diff actually disables the buttons. This also stops them from being focusable.

The navigation elements in the theme installer preview are anchors, not buttons, so that approach doesn't work for them.
We could bring them en par with the theme screen, but I'm not sure what side effects that could trigger.

This ticket was mentioned in Slack in #core by obenland. View the logs.


11 years ago

#9 follow-up: @SergeyBiryukov
11 years ago

  • Keywords needs-patch added; has-patch removed

26611.diff has a side effect.

Currently, if you press Shift+Tab several times, the inactive arrow can be focused, but you can't tab out of the modal.

With the patch, you can tab out of the overlay. See [26922] for the original keyboard accessibility commit.

#10 in reply to: ↑ 9 @obenland
11 years ago

  • Keywords needs-patch removed
  • Milestone 4.2 deleted
  • Resolution set to invalid
  • Status changed from new to closed

Replying to SergeyBiryukov:

Currently, if you press Shift+Tab several times, the inactive arrow can be focused, but you can't tab out of the modal.
With the patch, you can tab out of the overlay. See [26922] for the original keyboard accessibility commit.

Good catch, I was not aware of that. I'll close the ticket then, as the original bug is not reproducible anymore.

Note: See TracTickets for help on using tickets.