Skip to Content

The icon component does not render when styled in CSS

Hi experts.

I am trying to make a somewhat responsive dashboard for a customer. One of my issues is, that the icon component does not resize, when I use the @media function in CSS to control the size and location of various components depending on the device, the dashboard is viewed on.

I've used the same approach as described in this post

It works perfect with both image and text objects, but not the Icon object. When I look through the community I don't seem to find anyone with similar problem.

Does any of you know whether the Icon object behaves differently regarding rendering?

Thank you


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 20, 2016 at 01:31 PM

    Hi Thomas,

    The icon consists of an HTML div container which holds an HTML span element. The css event "before" on the mentioned span element renders that actual icon. This css selector needs a custom font-size like 10px when you want to work with @media selectors. All of this is calculated by Design Studio from the settings you applied on the Designer. If you want to override you need to tackle the css of the span element.

    The best way to investigate what's happening are the browser's developer tools. All of them have a section where you can inspect the HTML tree and assigned css classes and elements.

    Kind regards


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.