css labels important! as error

4 posts, 0 answers
  1. Roger
    Roger avatar
    183 posts
    Member since:
    Sep 2007

    Posted 08 Jan 2014 Link to this post

    Hi,

    I have a 3 css entries based on the following

    .m_text_RiskYellow .x-form-field {

             background-color:#E9E976 !important;

    }

    and Icenium labels the "!important" as an error - "Unexpected end of declaration"

    Any way to get around this so the error don't show?

  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 08 Jan 2014 Link to this post

    Hello Roger,

    We can't reproduce such a problem in our local tests. Can you share a project which shows the issue at hand?

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  3. Roger
    Roger avatar
    183 posts
    Member since:
    Sep 2007

    Posted 16 Jan 2014 Link to this post

    Hi,
    attached is the style sheet I added to the app...hope it helps
  4. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 21 Jan 2014 Link to this post

    Hi Roger,

    Thanks for the file.
    I found a few issues in your CSS which are causing errors and warnings and all of them are valid.
    You can see them in this demo.

    As my colleague already replied, the initial complaint for error is only reproducible if you have semicolon before the !important statement which is not the case in the provided code from your first post.

    I hope I've been of assistance.

    Regards,
    Zdravko
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top