Closed (fixed)
Project:
Token
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2015 at 16:05 UTC
Updated:
4 Feb 2016 at 17:24 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
bjlewis2 commentedI agree. We could add a border, and/or a light drop shadow. I've attached screenshots as examples.
Comment #3
bjlewis2 commentedComment #4
hussainwebI think this is a problem with Drupal core, not token. See the screenshot for the dialog on block layout page after removing the background.

Normally, there is a background for "Place Block" dialog because it is a modal dialog. The token browser is modal-less and does not get a background (as it shouldn't). But the styles for both the dialogs are same. I imagine there are no modal less dialogs used in Drupal core as this was not caught earlier.
Now, we should really fix this in core, but if we want to have a workaround here, we should be able to add a class to the dialog parent div and apply the styles from #2.
Comment #5
hussainwebHere is how it looks after applying the workaround like I discussed in #4. Patch is attached as well.

Comment #6
hussainwebAlso, created #2653942: Design for a non-modal dialog window...
Comment #7
gábor hojtsyWell, the difference of adding it to the dialog itself vs. the wrapper is that white area showing on the top corners. You could still tie the css to the inner dialog even if the class is on the outer container, no?
Comment #8
hussainwebIf I do that, this is how it looks. Is this what you mean?

Comment #9
gábor hojtsyHm. In #2, the shadow follows the curves in the grey header. In #5 it does not. That is what I meant. Looks like in #8 you moved it to only apply to the lower white area. I think that is still much better than the lack of shadow version, but not really what I meant :)
Comment #10
hussainwebAh, I think I see what you mean. This, right:

The patch is attached for that. The patch is small, so, I hope lack of interdiff is okay. :)
Comment #11
hussainwebComment #12
gábor hojtsyYeah. I think this is fine as a workaround for now to make this usable :)
Comment #13
berdirWorks for me too.
Comment #15
bjlewis2 commented@hussainweb opened a followup issue for core, and I've uploaded a patch there that would fix this everywhere. I'd love a review!
https://www.drupal.org/node/2653942