| Comment | File | Size | Author |
|---|---|---|---|
| #20 | 2899395-20.patch | 2.43 KB | timmillwood |
| #20 | interdiff-2899395-20.txt | 1.69 KB | timmillwood |
| #17 | entity-form.png | 470.28 KB | jojototh |
| #15 | Screenshot from 2017-08-07 17-06-12.png | 20.7 KB | timmillwood |
| #15 | 2899395-15.patch | 1.98 KB | timmillwood |


Comments
Comment #2
wim leersComment #3
timmillwoodMaybe this needs some more love, it'd be great to align it more with the entity form widget, but for now, this patch solves the issue.
Comment #4
wim leersI think that looks much better already indeed!
Does that also address the remarks in blue?
Comment #5
timmillwoodNo, let me take a look at that!
Comment #6
timmillwoodI think this will need a bit more sign off than #3, but I think it looks good.
Comment #7
timmillwoodWonder if the yellow is too yellow, maybe #FFFFEE would be better than #FFFFDD.
Comment #8
wim leersThis is still not pretty, but it's far clearer and therefore far more usable.
Tempted to RTBC, but I don't think I'm the right person. Who would be?
Comment #9
timmillwoodright, I'm not sure we can get it perfect in this issue, but better is good.
As lots of people seem to be on vacation at the moment maybe @webchick @bojhan @lauriii or @cottser could sign off? On the condition we have a follow up for someone like @jojototh to mock up a better solution.
This is running on the frontend theme, so I wonder how we can isolate this from being affected by other theme elements? I'm sure I remember @tedbow talking about this for some settings tray stuff.
Comment #10
wim leersWe can't isolate it, that's why Settings Tray had to do #2826722: Add a 'fence' around settings tray with aggressive CSS reset..
I'm tentatively marking RTBC #6 is obviously a huge improvement. Thanks for the quick turn-around time!
Comment #11
xjmThe all-the-way-around border is definitely an improvement.
I think there's an extra newline there.
I think we prefer lowercase and the shorthand for the hex (so
#ffdrather than#FFFFDD).However, this yellow color is only used in one other place in core, in tabledrag when the row is actively being dragged. This area is not being actively manipulated, so I don't think this yellow is the correct choice. Maybe just white? Do we need to override the background color at all?
This isn't used as a border color anywhere in core that I can find, neither as
graynor as its hex equivalent which is#808080I think. However, since the color is in HEAD, I guess that's out of scope. But let's file a followup to refine the design and theming for this?Comment #12
xjmAlso, does it need custom margins at all? Why not reuse existing design patterns rather than coming up with a new one?
Really we should not have backend developers designing by picking arbitrary colors and margins though, so tagging for usability feedback. :)
Comment #13
Bojhan commentedHaha, this looks interesting.
Just a few questions before proposing ideas:
Comment #14
timmillwood@Bojhan-
@xjm-
Comment #15
timmillwoodThis patch implements the changes suggested by @xjm in #11.
I looked at moving the form outside the red area, above the author, tabs, or title, this doesn't seem possible. I also discovered the weight is useless because it is overridden in
\Drupal\Core\Entity\EntityViewBuilder::buildMultiplebecause content_moderation_control is a component and has it's own weight.Bartik is useless to test against, so here's a screenshot of it with Bootstrap:
Comment #16
timmillwoodGoing back to "Needs work" because it looks... bad.
Comment #17
jojototh commentedMy suggestion is to tone it down, white background, gray dashed border and fix the alignment. Tested with 10 most popular D8 themes and it looks pretty consistent.
Comment #18
timmillwoodThanks @jojototh!
Keeping assigned to me, I'm in the middle of a couple of other patches, but once done I'll roll the patch for this.
Comment #19
wim leers@jojototh++ — excellent research and suggestion!
Comment #20
timmillwoodHere's the patch for @jojototh's designs.
(all credit to @jojototh for the CSS, all I did was generate the interdiff and patch)
Comment #21
wim leersI'd RTBC this, but I think that's really up to @jojototh :)
Comment #22
jojototh commentedthanks @wim :) I've tested the patch and visually it looks as intended, but someone else should probably review the code;)
Screenshot:

Comment #23
wim leersI think the code looks fine — and it can easily be refactored in the future anyway — that would not be a BC break.
So let's get this significant usability improvement in!
Comment #24
jojototh commentedRTBC++
Comment #25
Bojhan commentedSounds good!
Forcing a white background will make it stand out enough on the pink background, which has literally no meaning to anyone - validated in 2009/2011/2015 :P.
I am curious how this will end up looking in Seven. We can make that look quite good.
Comment #27
webchickWe reviewed this LIVE on the weekly UX call today. Emilie was able to do the CSS review.
Around the Seven screenshot, @jojototh responded that this would be highly unlikely to ever appear in Seven, since this is a doohickey displayed on the front-end of the site when viewing a piece of content. This makes sense to me, and this patch is a big improvement over the original screenshot.
Committed and pushed to 8.5.x and cherry-picked to 8.4.x. Thanks!
Comment #30
webchickAfter some Git struggles, finally did that. ;)
Comment #31
wim leers🎉
Comment #33
guillaumeduveauHi,
Why was in the first place decided to have a Content Moderation form on the view page ? Could someone point me to a discussion about that decision ? I don't like it at all, btu if there are strong reasons...
Comment #34
timmillwood@guix - This is something that came from Workbench Moderation, and allows you to moderate entities with our strictly editing them.
If you have real concerns please open a new issue. There are a couple making their rounds about different issues with the moderation form.
Comment #35
guillaumeduveauThank you @timmillwood !
FYI, I created an issue there, if some other people agree and want to do the work... https://www.drupal.org/project/drupal/issues/2959657