Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#26637 closed defect (bug) (invalid)

css #wpadminbar typo

Reported by: mathiasdb Owned by:
Priority: normal Milestone:
Component: Template Version: 3.8
Severity: normal Keywords:
Cc: Focuses:

Description

Hi

I just downloaded the latest version of Wordpress (v3.8) and I started restyling the admin menu whilst I discovered a typo in the new code.

#wpadminbar .ab-top-menu>li>.ab-item:focus, #wpadminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus, #wpadminbar .ab-top-menu>li:hover>.ab-item, #wpadminbar .ab-top-menu>li.hover>.ab-item {
background: #333;
color: #2ea2cc;
}

Check out the second query in the CSS, shouldn't it be #wpadminbar.nojs instead of #wpadminbar.nojq?

Attachments (1)

css-typo.png​ (136.9 KB ) - added by mathiasdb 13 years ago.
css #wpadminbar typo

Download all attachments as: .zip

Change History (2)

@mathiasdb
13 years ago

css #wpadminbar typo

#1 @nacin
13 years ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → closed

Hi mathiasdb, thanks for the report!

In this case, .nojq stands for 'no jQuery'. We don't want to actually load jQuery ourselves as it is pretty heavy here. But when jQuery is present (due to the theme or another plugin), we use HoverIntent to determine the user's intent when navigating menus and submenus in the toolbar.

​http://core.trac.wordpress.org/browser/tags/3.8/src/wp-includes/js/admin-bar.js#L49

Note: See TracTickets for help on using tickets.