Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #26931, comment 6


Ignore:
Timestamp:
01/29/2014 07:08:09 PM (10 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26931, comment 6

    v1 v2  
    11Generally `:focus` is triggered on clicking any "focusable" element (links, form elements), `:active` is for links and buttons while the mouse button is down. Focusing link or button by tabbing would also make it `:active`.
    22
    3 In the TinyMCE toolbar the active elements are `<div tabindex="-1">` (focusable only with JS) so `:focus` can be used on them and it won't trigger on clicking.
     3In the TinyMCE toolbar the button elements are `<div tabindex="-1">` (focusable only with JS) so `:focus` can be used on them and it won't trigger on clicking.