Add color to the social icons render

Issue #357 new
Info 3bits created an issue

Add color as a 4th parameter in the social icons list.

Adding a hover color would be a must

Comments (11)

  1. Jeremy Hopkins

    Is this to allow each icon a different color or just to give more control over the colors than there is currently but keep all icons hte same color?

  2. Jeremy Hopkins

    I am not sure how well this would work in practice with the background colors?

    I think technically this will be easy to do so the best thing is probably to add the feature and see where it goes from there.

  3. Info 3bits reporter

    If your background is black, you can select white for all the icons and grey for hover.

    If the background is white you can select black or its colour and any other for hover.

    The solution is good and I think easy to add.

    There are some Joomla modules using this option and work great.

  4. Jeremy Hopkins

    I tried that but there is paadding which also gets colored with the gb and does not look too good:

    socialicons-bg.PNG

  5. Info 3bits reporter

    This is my proposal to an user request in the moodle forum

    .fa-facebook-square::before{
        color: #3b5998;
    }
    
  6. Usman Asar

    I think white icons keeps the professional look intact, plenty of high profile sites i have seen are making use of uniform colored social icons.

  7. Jeremy Hopkins

    Hi Usman,

    I will do this so that the current parameters still work and render whatever color is in the theme settings. If a color is added in the strings for the social links then it will override that color, so, if you dont want to use this feature it will do exactly what it does currently, at least that is the plan!

  8. Info 3bits reporter

    The proposal is add the colour in the item list and then use this colour to display the icons. If you want to display all the icons in white colour just add #ffffff to all the items. If you want red, then add #ff0000. Doesn't matter the background, the icons always will match the main colours.

    I think that we can control any request using this solution.

  9. Usman Asar

    Even better, uniformity with added functionality of customization, as people may be using White Header, so changing color matching their top header or footer gives more customization options.

  10. Log in to comment