Search Unity

Css appears to ignore !important -- Is this intended?

Discussion in 'UI Toolkit' started by broots, Feb 9, 2021.

  1. broots

    broots

    Joined:
    Dec 20, 2019
    Posts:
    54
    Heya, real simple question, I'm having trouble overriding some of unity's default CSS settings for certain things, some of them appear to have inline style priority, and I'd like to. Somebody pointed out to me that in CSS land you can use !important, which unity's CSS internally supports. I'm lead to believe this should override any style not marked !important upload_2021-2-9_1-20-10.png

    However, it seems unity ignore this entirely. Is !important simply not supported or is this a bug?

    Cheers,
    Z.
     
    manuelgoellnitz likes this.
  2. uMathieu

    uMathieu

    Unity Technologies

    Joined:
    Jun 6, 2017
    Posts:
    294
    The !important keyword is unfortunately not supported at the moment.
     
unityunity