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

       Web browser: ---
            Bug ID: 43406
           Summary: [regression] CSS Selector for vector menu label is not
                    generic enough
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: code-update-regression
          Severity: normal
          Priority: Unprioritized
         Component: Interface
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

The gerrit change I9a2ebd50, to the CSS which is applied to vector menus with
labels (currently only the "variants" menu, from LanguageConverter), do not
scale for other similar menus. Anyone wanting to add a new vector menu with a
visible title analogous to the "variants" will have to duplicate the CSS
because the new CSS is now only for the "#p-variants
#mw-vector-current-variant".

I noticed this because the formatting of a menu like that added by one of my
user scripts changed after I replaced the h4 by an h3 [1], and the reason is
that this selector doesn't apply to it anymore. Gadgets such as [2] might have
the same kind of problems.

Consider changing the selector to something like
div.vectorMenu .vectorMenuLabel
or
div.vectorMenu h3.vectorMenuLabel
(and updating the code which generates the menu accordingly).

[1] https://pt.wikibooks.org/w/index.php?diff=242001
[2]
https://en.wikipedia.org/wiki/Special:PrefixIndex/MediaWiki:Gadget-MenuTabsToggle

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to