Request details

Shadow shouldn't show through fill color at reduced opacity (zero fill opacity should 'knock out' shadow)

When the fill color opacity is lowered, the shadow should not show through.

The fill opacity is also affecting the shadow's opacity. These controls should be independent of each other.

I have attached a screen shots from xd that shows the issue and a screen shot from sketch that shows the desired result. The circle on both are filled with #ffffff at 50% opacity.

39 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    james guest shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    AdminPeter Flynn (Admin, Adobe) responded  · 

    This is something we’d like to get more feedback on.

    a) Some apps (such as Adobe Illustrator and InDesign) behave the way XD does now: reducing fill opacity (not overall object opacity) keeps the whole shadow visible but reduces its opacity in proportion with the fill color’s opacity. At zero fill opacity, the shadow is completely gone along with the fill (unless you have a border, in which case you have a thin ring-shaped shadow left).

    b) Other apps (such as Photoshop or Sketch) behave differently: reducing fill opacity leaves the shadow’s opacity at full strength, but clips the shadow so you don’t see it through the translucent fill. At zero fill opacity, in the middle of the shape you can see what’s behind it completely unobscured, but outside the shape’s edges you still see the drop shadow at full strength.

    Which one do people prefer? Do you need to have both options available?

    16 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • David Gross commented  ·   ·  Flag as inappropriate

        Shadow should be independent of fill. They are separate attributes you can control. In fact, standard rows uses an interior shadow (at y=-1) as a divider between rows...XD cannot do this!!!

      • Rebecca commented  ·   ·  Flag as inappropriate

        I realize this is a year-old thread, but it's still important. At the moment it's impossible to use background blur with shadows, or have a shadowed invisible object.

      • james guest commented  ·   ·  Flag as inappropriate

        Is there anything happening with this bug/feature. Until it's fixed background blur on an object with a shadow is unusable.

        can it be logged or filed or something?

      • Isaac Campbell commented  ·   ·  Flag as inappropriate

        James is right. CSS shadow only shows a shadow around the object, even if the object is transparent. Since XD is for designing web and app experiences, it should act like it would in code. Regardless of that, it still makes more sense to have the shadow only on the outside of the object. Please implement feedback.

      • James commented  ·   ·  Flag as inappropriate

        What James guest has said I agree with entirely. There is barely ever an instance when where the shadow behind the object is what I need, over just the shadow around the circumference. I can see why this has been implemented, as it is more 'life-like' but in reality it is not needed and quite frankly a messy from an aesthetic perspective. So Photoshop/Sketch for me too.

      • james guest commented  ·   ·  Flag as inappropriate

        also, i created those examples using the background blur because i think its when using both those effects combined that its most problematic. to show the background blur the front element needs some transparency and if the front element had text as well like a dialog box, i want to have full and seperate control of the shadow opacity and the element opacity.

      • james guest commented  ·   ·  Flag as inappropriate

        i design mostly for the web and i believe that clipping the shado is how css handles the box-shadow on a element with less than a 1 opacity. i dont need both since i can replicate the unclipped look with 2 overlapping shapes once you add in blurring on shapes.

      Feedback and Knowledge Base