Issue #2223Opened August 27, 2019by benvmatheson0 reactions

[Question] Should default text-align property have icons?

Question

If styleManager is left out of the configuration, the default includes text-align with icons showing the choices. image

If I include a styleManager configuration and add text-align, it uses words instead. image

Should this be the case since it's a "built in" property, or do I still need to manually add the icons?

Answers (2)

ramusesanAugust 28, 20190 reactions

hi @benvmatheson all you have to do is include fontawesome in your project and add the class Names

reference for font awesome: https://www.w3schools.com/icons/fontawesome_icons_intro.asp

i.e

{
                                property: 'text-align',
                                defaults: 'left',
                                list: [
                                    { value: 'left', name: 'Left', className: 'fa fa-align-left' },
                                    { value: 'center', name: 'Center', className: 'fa fa-align-center' },
                                    { value: 'right', name: 'Right', className: 'fa fa-align-right' },
                                    { value: 'justify', name: 'Justify', className: 'fa fa-align-justify' }
                                ],
                            },

if you want to put your own icons also its possible with css className or you can use any other librarys like font awesome library

artfSeptember 4, 20190 reactions

@benvmatheson I preferred not to bind the font-awesome dependency (that I still hope to remove soon) to the property factory

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.