question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow customization of icons

See original GitHub issue

Currently, the iconset is tied to Font Awesome. Ideally, we would also allow the customization of these icons. Could possibly set this as a property to the tree itself or allow the specification via :before CSS property.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
imkevinjonescommented, Jan 27, 2017

Yeah mate, that’s exactly what I was thinking. I’ve got a modified version of react-checkbox-tree that has both node-level defined icons and pessimistic/optimistic toggling. It’s provided incredible flexibility. Fantastic work on this library, BTW. Best React checkbox library available.

0reactions
jakezateckycommented, Mar 14, 2017

@Gillingham A primary reason things were shifted to CSS was to decouple the dependency on Font Awesome from the markup, and to not require that user add boilerplate properties to the component itself when it could be achieved in achieved in CSS. If you have existing classes, you can always use the @extends syntax or equivalent in your CSS preprocessor and override the library’s classes.

Markup-level specification can be added to this component, but I am curious as to which icons you would find useful to alter. I can add support for all icons similar to my earlier comment, but I do not know if anyone finds value in changing ALL of them.

If we add support for the above, the CSS option would still exist as the preferred alternative, so we would have full backward compatibility. The newer specification would potentially more exotic icon configuration, but the developer would have to be aware that significant deviations might make the icons mis-align.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Change and Customize App Icons on Android
The easiest way to change your app icons is by installing and using a new launcher that allows this. That's the method we'll...
Read more >
How to customize your iPhone's app icons - The Verge
Okay, let's begin. Find and tap on the Shortcuts app. It's pre-installed; if you can't see it immediately on your homescreen, swipe left...
Read more >
How to Set Custom Icons for Your Android Apps
Method 1: Use an Image · First, you'll need to remove the image's background. On your phone or PC, open a browser and...
Read more >
The ultimate guide on how to customize your iPhone running ...
Tap on the icon next to the text to select a custom image from Photos or Files. Tap "add" to finish customizing the...
Read more >
Why You Should Customize the Apps and Widgets on Your ...
It's fairly simple to change the appearance of your iPhone app icons. ... your home screen, allowing you to create your own unique...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found