Jump to content

Topic on Talk:OOUI/Widgets/Icons, Indicators, and Labels

Why do not all of the icons load?

5
Cyberpower678 (talkcontribs)

Only certain icons actually render in the selection. When using the "book" icon it will just create an empty space where the icon should be.

Volker E. (WMF) (talkcontribs)
Cyberpower678 (talkcontribs)

That looks like backend documentation. I'm trying to create a JS gadget and I want to load the book icon, but it doesn't render.

YOUR1 (talkcontribs)

You can add $out->addModuleStyles( [ 'oojs-ui.styles.icons-editing-core' ] ); in your moduleloader-hook to load additional icons.

Putnik (talkcontribs)

@Cyberpower678 You need to load related styles via ResourceLoader, e.g. mw.loader.load( [ 'oojs-ui.styles.icons-editing-citation' ] ); for book icon.

Reply to "Why do not all of the icons load?"