https://bugzilla.wikimedia.org/show_bug.cgi?id=38345

       Web browser: ---
             Bug #: 38345
           Summary: Moodbar smileys styled by JS-added class instead of
                    plain CSS
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Moodbar
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


There's some very strange code in ext.moodBar.core.js where the JS applies the
CSS class 'mw-moodBar-types-hover' when the user hovers over the element, and
then removes the class when the mouse is moved away. This style is then used to
apply the correct background image (the darkened faces) to the
happy/sad/confused faces.  The individual faces are, however, styled to the
colored faces by simply using the :hover pseudo-class, so clearly using :hover
isn't considered to be problematic. None of the elements are links, so IE6 is
apparently being ignored for these styles. 

Is there any reason not to just remove the class-applying JS code (lines
239-243 in moodBar.core.js) and replace the uses of 'mw-moodBar-types-hover'
with 'mw-moodBar-types:hover' in moodBar.core.css?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to