Comments

Gábor Hojtsy created an issue. See original summary.

bjlewis2’s picture

Issue summary: View changes
StatusFileSize
new354.9 KB
new363.89 KB

I agree. We could add a border, and/or a light drop shadow. I've attached screenshots as examples.

Border

Border and Shadow

bjlewis2’s picture

Issue summary: View changes
hussainweb’s picture

Issue summary: View changes
StatusFileSize
new53.07 KB

I 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.

hussainweb’s picture

Status: Active » Needs review
StatusFileSize
new28.14 KB
new888 bytes

Here is how it looks after applying the workaround like I discussed in #4. Patch is attached as well.

hussainweb’s picture

gábor hojtsy’s picture

Status: Needs review » Needs work

Well, 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?

hussainweb’s picture

StatusFileSize
new17.9 KB

If I do that, this is how it looks. Is this what you mean?

gábor hojtsy’s picture

Hm. 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 :)

hussainweb’s picture

StatusFileSize
new919 bytes
new24.58 KB

Ah, 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. :)

hussainweb’s picture

Status: Needs work » Needs review
gábor hojtsy’s picture

Status: Needs review » Reviewed & tested by the community

Yeah. I think this is fine as a workaround for now to make this usable :)

berdir’s picture

Status: Reviewed & tested by the community » Fixed

Works for me too.

  • Berdir committed 918d0d5 on 8.x-1.x authored by hussainweb
    Issue #2630374 by hussainweb, bjlewis2: Token browser is hard to tell...
bjlewis2’s picture

StatusFileSize
new7.63 KB

@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

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.