Jump to content

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

About this board

Previous discussion was archived at Talk:OOjs UI/Widgets/Icons, Indicators, and Labels/Archive 1 on 2017-05-30.

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?"
Sebastian Berlin (WMSE) (talkcontribs)

What is needed to use the different icons? I can get it to work with icons like "alert" and "add", but if I use "edit" the icon isn't shown. Are there modules that need to be loaded for specific icons? I have loaded all that I could find: oojs-ui-core, oojs-ui-windows, oojs-ui-widgets, oojs-ui-toolbars.

Also, the "remove" icon used in the example doesn't seem to exist any more; it's not on the auto generated page.

Reply to "Some icons not shown"

Icon selection and link

2
Summary by Quiddity (WMF)

Updated

Quiddity (WMF) (talkcontribs)

I'm confused about the sentence, "The following icons are included in the OOjs UI library:" followed by a very small image-list of icons- is that out-of-date, or does it refer to some nuance that I'm missing? (IANAD).

I'm essentially asking if someone could either elaborate on the detail of that sentence, and/or link to c:OOjs UI icons directly in the #Icons sections (instead of just the #See_also where most people will miss it.). Ping @Volker E. (WMF):. Thanks!

Jdforrester (WMF) (talkcontribs)
There are no older topics