Module:NavboxMobile: Difference between revisions

No edit summary
No edit summary
Line 486: Line 486:
                     :addClass('hlist') -- Ensure hlist class is added for proper shading
                     :addClass('hlist') -- Ensure hlist class is added for proper shading
                     :wikitext(processItem(args[listKey], args.nowrapitems))
                     :wikitext(processItem(args[listKey], args.nowrapitems))
                -- Ensure consistent background shading across rows
                if args.groupstyle or args.liststyle then
                        local bgColor = mw.ustring.match(args.groupstyle or args.liststyle, "background%-color%s*:%s*([^;]+)")
                    if bgColor then
                        listCell:css('background-color', bgColor) -- Apply consistent background color
                    end
                end
             end
             end
         end
         end