Problem/Motivation

Tables have seen little issues, the only improvement we saw was to remove some of the distracting elements and improving the whitespace.

We developed Proposal: A Style Guide for Seven. This issue aims to introduce the proposed styling for tables to core.

To quote the rationale provided:

To improve the ratio of information to UI chrome, this guide recommends removing zebra striping and using thin rules to separate table rows. A progressive enhancement creates a subtle highlight on the hovered table row, allowing the eye to more easily move horizontally along the row, even when large stretches of whitespace appear between cells contents. (Note that this effect, being an enhancement, has no planned touchscreen equivalent and does not pass WCAG contrast standards.) For similar reasons, this style also removes left and right borders from the table and table cells.

The style used here for the sort-active table header cell is a motif carried through to other elements, such as secondary tabs and pagination. This consistency is both good for usability and for Drupal’s credibility (part of the brand).

Proposed resolution

Remaining tasks

The main work has been completed and has been committed in comment #177. There are some final cleanups to do:

  • In the Views UI the buttons appear too large. See screenshot in comment #179.
  • AJAX throbbers cause the buttons to inflate like a balloon. See screenshot in comment #183.

User interface changes

The dropbutton style will be changed, no functional differences.

API changes

None

CommentFileSizeAuthor
#204 shot02.png5.04 KBG-raph
#204 shot01.png6.65 KBG-raph
#204 interdiff.txt589 bytesG-raph
#204 dropbutton_style_update-1989470-204.patch840 bytesG-raph
#203 1989470-rtl.png5.42 KBpfrenssen
#201 shot2.png3.15 KBG-raph
#201 shot1.png8.91 KBG-raph
#201 dropbutton_style_update-1989470-201.patch711 bytesG-raph
#190 seven_views_table_vertical_align.png62.96 KBngocketit
#186 DropButtonBartik.png21.41 KBGábor Hojtsy
#183 dropbutton-throbber.png10.74 KBtim.plunkett
#183 dropbutton-spinner.png10.11 KBtim.plunkett
#180 Screenshot 2014-05-29 14.52.22.jpg200.17 KBLewisNyman
#180 dropbutton-style-1989470-180.patch545 bytesLewisNyman
#179 2014-05-29_1408.png116.2 KBeigentor
#171 1989470-dropbutton-style-171.patch19.56 KBLewisNyman
#170 1989470-dropbutton-style-170.patch8.33 KBmgifford
#161 interdiff-1989470.txt3.07 KBmgifford
#161 1989470-dropbutton-style-161.patch20.48 KBmgifford
#158 with-focus-restored.png16.11 KBmgifford
#158 1989470-dropbutton-style-158.patch10.69 KBmgifford
#151 interdiff-145-151.txt1.34 KBaboros
#151 1989470-dropbutton-style-151.patch19.07 KBaboros
#147 views-overlap.png31.39 KBeigentor
#145 1989470-dropbutton-style-145.patch19.05 KBaboros
#145 interdiff-139-145.txt1.06 KBaboros
#145 dropbutton-views-ui-seven.png14.71 MBaboros
#145 dropbutton-views-ui-stark.png66.32 KBaboros
#145 dropbutton-views-ui-bartik.png67.65 KBaboros
#141 dropbutton-views-ui-edit-view-more-words.png61.7 KBaboros
#141 dropbutton-views-ui-edit-view.png154.5 KBaboros
#140 dropbutton-views-ui.png116.23 KBeigentor
#139 interdiff-134-139.txt1.69 KBaboros
#139 1989470-dropbutton-style-139.patch19.15 KBaboros
#139 views-ui-stark.png169.69 KBaboros
#139 views-ui-bartik.png170.43 KBaboros
#139 views-ui-seven.png480.48 KBaboros
#134 1989470-dropbutton-style-134.patch18.94 KBaboros
#132 bartik-before.png12.31 KBtim.plunkett
#132 bartik-after.png11.62 KBtim.plunkett
#130 1989470-dropbutton-style-130.patch18.9 KBaboros
#128 dropdown_click_n_hover_views_before_after.png153.52 KBstefanos.petrakis@gmail.com
#128 dropdown_click_n_hover_before_after.png114.17 KBstefanos.petrakis@gmail.com
#125 1989470-125.patch18.86 KBaboros
#124 dropbutton-views-2.png178.01 KBaboros
#124 dropbutton-views.png159.29 KBaboros
#124 dropbutton-hover.png139.59 KBaboros
#123 dropdown_hover_white.png5 KBBès
#123 dropdown_hover.png4.87 KBBès
#123 interdiff-1989470-122-123.txt638 bytesBès
#123 1989470-123.patch18.87 KBBès
#122 Screenshot 2014-03-25 10.31.37.jpg157.55 KBLewisNyman
#122 Screenshot 2014-03-25 10.31.14.jpg196.05 KBLewisNyman
#122 Screenshot 2014-03-25 10.31.08.jpg181.64 KBLewisNyman
#122 Screenshot 2014-03-25 10.30.05.jpg198.36 KBLewisNyman
#122 dropbutton-style-1989470-122.patch18.85 KBLewisNyman
#122 interdiff.txt430 bytesLewisNyman
#120 Screenshot 2014-03-17 22.49.33.jpg189.62 KBLewisNyman
#120 Screenshot 2014-03-17 22.25.11.jpg186.86 KBLewisNyman
#120 Screenshot 2014-03-17 22.50.34.jpg160.47 KBLewisNyman
#120 Screenshot 2014-03-17 22.25.02.jpg157.17 KBLewisNyman
#120 dropbutton-style-1989470-120.patch18.99 KBLewisNyman
#120 interdiff.txt2.67 KBLewisNyman
#117 dropbutton-style-1989470-117.patch18.61 KBLewisNyman
#117 interdiff.txt9.79 KBLewisNyman
#113 dropbutton-style-1989470-112.patch18.75 KBLewisNyman
#110 interdiff.txt959 bytesrteijeiro
#110 dropbutton-style-1989470-110.patch18.86 KBrteijeiro
#110 views-edit-dropdown-button.png13.81 KBrteijeiro
#110 views-dropdown-button.png6.29 KBrteijeiro
#110 dropdown-button.png12.46 KBrteijeiro
#109 interdiff.txt855 bytesLewisNyman
#109 dropbutton-style-1989470-109.patch18.86 KBLewisNyman
#107 dropbutton-style-1989470-105.patch18.78 KBLewisNyman
#107 interdiff.txt11.37 KBLewisNyman
#105 dropbutton-webkit-focus-ring.png8 KBWim Leers
#99 Drop-Button-Focus.png86.16 KBmgifford
#92 interdiff.txt2.25 KBphilipz
#92 dropbutton-style-1989470-92.patch13.69 KBphilipz
#90 Keyboard-only-problems-w-save-n-publish.png410.03 KBmgifford
#89 dropbutton-style-1989470-89.patch13.47 KBLewisNyman
#89 interdiff.txt1.27 KBLewisNyman
#84 changes_dropbutton.png26.96 KBdimaro
#84 dropbutton-style-1989470-84.patch13.31 KBdimaro
#81 Zrzut ekranu 2014-01-25 o 18.39.21.png20.03 KBphilipz
#80 dropbutton-style-1989470-80.patch13.27 KBdimaro
#75 dropbutton-style-1989470-75.patch13.51 KBLewisNyman
#75 interdiff.txt2.33 KBLewisNyman
#74 Zrzut ekranu 2013-12-18 o 08.47.59.png15.88 KBphilipz
#71 dropbutton-style-1989470-71.patch13.03 KBphilipz
#71 interdiff-69-71.txt1.78 KBphilipz
#69 dropbutton-style-1989470-69.patch13.01 KBLewisNyman
#69 interdiff.txt1.41 KBLewisNyman
#67 Screen Shot 2013-12-16 at 09.40.38.jpg29.77 KBLewisNyman
#66 Zrzut ekranu 2013-12-16 o 09.29.38.png111.53 KBphilipz
#66 Zrzut ekranu 2013-12-16 o 09.29.20.png97.27 KBphilipz
#61 PATCH-table-moves.png44.72 KBtim.plunkett
#61 HEAD-no-table-adjust.png38.03 KBtim.plunkett
#61 PATCH-no-striping.png9.13 KBtim.plunkett
#61 HEAD-striping.png8.98 KBtim.plunkett
#59 Zrzut ekranu 2013-12-15 o 20.00.11.png214.6 KBphilipz
#59 Zrzut ekranu 2013-12-15 o 19.36.36.png35.81 KBphilipz
#59 interdiff-1989470-46-59.txt436 bytesphilipz
#59 dropbutton-style-1989470-59.patch12.52 KBphilipz
#58 Screen Shot 2013-12-15 at 8.49.43 AM.png93.95 KBwebchick
#58 Screen Shot 2013-12-15 at 8.53.29 AM.png36.66 KBwebchick
#53 not-centered-buttons.png7.8 KBtim.plunkett
#53 chunky-buttons.png37.97 KBtim.plunkett
#53 different-size-buttons.png12.23 KBtim.plunkett
#52 interdiff-1989470-46-48.txt1.28 KBklonos
#48 dropbutton-style-1989470-48.patch12.55 KBphilipz
#47 Screen Shot 2013-12-13 at 10.21.55 PM.png24.25 KBwebchick
#47 Screen Shot 2013-12-13 at 10.21.39 PM.png34.02 KBwebchick
#47 Screen Shot 2013-12-13 at 10.21.12 PM.png34.93 KBwebchick
#46 dropbutton-style-1989470-46.patch12.57 KBLewisNyman
#46 interdiff.txt911 bytesLewisNyman
#39 dropbutton-style-1989470-38.patch11.68 KBLewisNyman
#39 interdiff.txt612 bytesLewisNyman
#39 Screen Shot 2013-12-12 at 19.57.42.jpg25.79 KBLewisNyman
#35 dropbutton-style-1989470-34.patch11.66 KBphilipz
#32 dropbutton-style-1989470-32.patch5.99 KBphilipz
#32 Zrzut ekranu 2013-12-10 o 13.17.14.png49.74 KBphilipz
#32 Zrzut ekranu 2013-12-10 o 13.23.00.png68.47 KBphilipz
#30 Screen Shot 2013-12-09 at 8.16.52 PM.png57.78 KBwebchick
#29 Screen Shot 2013-12-09 at 7.15.18 PM.png39.9 KBwebchick
#28 Zrzut-ekranu-2013-12-08-o-2.jpg138.55 KBphilipz
#26 Screen Shot 2013-12-08 at 19.25.23.png91.7 KBLewisNyman
#25 Screen Shot 2013-12-08 at 8.45.58 AM.png17.66 KBwebchick
#23 dropdown-style-update-probl.png90.4 KBphilipz
#21 Screen Shot 2013-12-07 at 15.05.37.png10.63 KBLewisNyman
#21 dropbutton-style-1989470-21.patch11.04 KBLewisNyman
#21 interdiff.txt13.05 KBLewisNyman
#19 dropbutton-style-1989470-19.patch12.37 KBemma.maria
#11 dropbuttons.png15.09 KBidebr
#11 buttons-views.png35.6 KBidebr
#10 dropbutton-style-1989470-10.patch6.75 KBLewisNyman
#10 button-and-dropbutton-combined-10.patch23.43 KBLewisNyman
#5 core-js-splitbutton-46_0.patch52.24 KBLewisNyman
#1 Screen Shot 2013-05-07 at 11.44.07 PM.png106.03 KBBojhan
#1 Screen Shot 2013-05-07 at 11.44.21 PM.png227.02 KBBojhan
Screen Shot 2013-05-07 at 11.36.00 PM.png53.19 KBBojhan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Bojhan’s picture

Issue summary: View changes

Updated issue summary.

Bojhan’s picture

Issue summary: View changes

Updated issue summary.

Bojhan’s picture

This ought to be extended to the following interactions:

Publish button:

Screen Shot 2013-05-07 at 11.44.07 PM.png

Autocomplete:

Screen Shot 2013-05-07 at 11.44.21 PM.png

Bojhan’s picture

Issue summary: View changes

Updated issue summary.

Bojhan’s picture

Issue summary: View changes

Updated issue summary.

Bojhan’s picture

Issue summary: View changes

a

ry5n’s picture

Maybe this should happen here: http://drupal.org/node/1899236

ry5n’s picture

After much work I’ve completely re-written the JS for this in #1899236: Add new Splitbutton render element to eventually replace Dropbutton. I think it’s now ready to be made into a patch, but I would love some help with JS and PHP.

ry5n’s picture

Issue summary: View changes

b

LewisNyman’s picture

Issue tags: -stylguide +styleguide
LewisNyman’s picture

Status: Active » Needs work
FileSize
52.24 KB

I'm concerned about the progress of #1899236: Add new Splitbutton render element to eventually replace Dropbutton and the reliance on some hardcore PHP hacking to get the correct output. It's really important that we get all buttons in core looking consistent.

I think it's better to split to issue into two. Let's implement the updated styling here and come back to deal with the tricky stuff in #1899236: Add new Splitbutton render element to eventually replace Dropbutton.

Here's the latest patch, we'll need to remove the functional changes.

jibran’s picture

Status: Needs work » Needs review

Sending for test.

Status: Needs review » Needs work

The last submitted patch, core-js-splitbutton-46_0.patch, failed testing.

mcjim’s picture

Assigned: Unassigned » mcjim
mcjim’s picture

aaaa

Bojhan’s picture

Assigned: mcjim » Unassigned

I like this strategy, could we get an updated patch?

LewisNyman’s picture

Status: Needs work » Needs review
FileSize
23.43 KB
6.75 KB

I decided it was easier to start again, written on top of #1986074: Buttons style update.

Here's a first shot at a CSS only patch. It would be nice to create a primary and small variant, seeing as we can't easily reuse all the button classes in #1986074: Buttons style update.

LewisNyman’s picture

Issue summary: View changes

...

idebr’s picture

Issue summary: View changes
Status: Needs review » Needs work
FileSize
35.6 KB
15.09 KB
  1. Dropbutton doesn't have the styling between the text and the dropdown, see dropbuttons.png
  2. Buttons on views administration page have become unreadable, see buttons-views.png
emma.maria’s picture

Assigned: Unassigned » emma.maria
webchick’s picture

Issue tags: +alpha target

I just committed #1986074: Buttons style update which now makes the node add/edit form look like this:

Square button next to round button

Because that's rather wonky-looking, and because that's a very frequently-visited page, I'd love this patch to make it in by the next alpha (Dec. 16). Tagging such. Go, emma, go! :)

emma.maria’s picture

Working on this today :)

emma.maria’s picture

emma.maria’s picture

emma.maria’s picture

The last submitted patch, 10: dropbutton-style-1989470-10.patch, failed testing.

emma.maria’s picture

Assigned: emma.maria » Unassigned
FileSize
12.37 KB

This was as far as I could get for now. I focused on the styling for the normal buttons, not the primary ones.

tim.plunkett’s picture

Patch doesn't apply :(

+++ b/core/themes/seven/css/components/dropbuttons.css
@@ -0,0 +1,259 @@
+  border-radius: 20em;
...
+  border-radius: 20em;
...
+  border-radius: 20em;
...
+  border-radius: 20em;

Also, despite having this radius defined four times (twice for 2 selectors), all dropbuttons are square when I tested it

LewisNyman’s picture

Status: Needs work » Needs review
FileSize
13.05 KB
11.04 KB
10.63 KB

Ok... this was hard work but I think it's almost there. The issue I kept banging my head against only seems to appear on the views listing page and I can't see what is affecting it.

It would be good to get some other eyes on it while I dunk my head in ice cold water.

The last submitted patch, 21: dropbutton-style-1989470-21.patch, failed testing.

philipz’s picture

I found some problems in Chrome (Mac) but those look like cross browser issues to me.

First thing is publish button on create node page looking bad.

Second problem is dropdown button on Content Types page. First the label of button is cut because the parent table doesn't have enough space for operations column. I'm not sure if this is reported as a bug in separate issue?
Moreover the button is pushed down and after expanding it unfolds to the right not left (I've seen it does unfold to the left correctly on views edit pages). This might also be a separate issue I'm not sure :)

I'll try to figure out what's causing this now.

joelpittet’s picture

@LewisNyman that double border bit is happening due to position: absolute vs position: static.

No double border with this:
.js .views-edit-view .dropbutton-widget { position: static; }

Though changing that won't help because the widget will want to expand the cell's width with position: static; Maybe a suggestion is to use box-shadow to emulate a border outside of the box... or there may be a box-sizing property that could help here too.

@philipz i'm on chrome and ff mac and I don't see that issue in your screenshot, may want to clear caches and the like? The expanding left vs right issue should be fixed with split button but that's a different issue, the positioning of the button affects which way it will expand.

webchick’s picture

Status: Needs review » Needs work
FileSize
17.66 KB

In addition to those, this is definitely not going to fly (from the node form):

Dropbutton goes from nice and blue and integrated to separated buttons with a weird border around them

LewisNyman’s picture

When I apply the patch on simplytest.me I see this?

the content creation page

webchick’s picture

Status: Needs work » Needs review

Hm. Well that's definitely much nicer than what I see. :D I even tried private browsing. I'll futz with my local and see what's going on. This is Firefox on OSX, fwiw.

philipz’s picture

I was testing and making screenshots from #23 on latest 8.x dev but you were right about cache. I though I cleared it but maybe I did not. Anyway now I confirm I see publish button exactly as #26. Looks great :)

Unfortunately buttons on Content Type page, Languages page or Text formats and editors page all look like below. Does this patch deal with that?

Combined three screenshots:

Dropbuttons on admin pages

webchick’s picture

Status: Needs review » Needs work
FileSize
39.9 KB

I can confirm that; even in English, this looks wrong, e.g. on admin/structure/types:

Text popping out of dropbuttons

Node form looks good though. :D

webchick’s picture

Another screen that be lookin' funky is the configuration synchronization screen:

Buttons busting out of table cells.

philipz’s picture

OK I've tested it more and it seems the overflow: hidden on dropdown labels (when folded) is caused by

.js .dropbutton-widget .dropbutton {
  overflow: visible;
}

in /core/themes/seven/css/components/dropbuttons.css
I don't know if this is really needed somewhere else? I think visible overflow on buttons is bad in any case possible.

Regarding buttons shifted down it is NOT happening on Views admin listing page for example and it is because the td has vertical-align: top. This (almost) fixes the problem for other admin listings like Content Types page. This needs change in /core/themes/seven/style.css so it might need more testing.

philipz’s picture

After couple of changes and I've got this looking like this (in attached screenshots).
There's one change in core/modules/views_ui/css/views_ui.admin.css to fix a little glitch on view edit page.

philipz’s picture

Status: Needs review » Needs work

Please ignore this patch #32. Needs more work. Sorry for the noise I will test future patches better :)

The last submitted patch, 32: dropbutton-style-1989470-32.patch, failed testing.

philipz’s picture

Status: Needs work » Needs review
FileSize
11.66 KB

Tested this one on Views list/edit pages, admin list page (Text formats and editors) and node create page. This is based on #21.

Status: Needs review » Needs work

The last submitted patch, 35: dropbutton-style-1989470-34.patch, failed testing.

emma.maria’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 35: dropbutton-style-1989470-34.patch, failed testing.

LewisNyman’s picture

Hey nice work :) This is looking very close. Even the views edit page looks great!

The only thing I could spot is that the primary border is missing from the toggle. I found it was a position static being set in misc/dropbutton.css. This patch overwrites that.

philipz’s picture

That was not easy to see ;) Now it looks really nice. As always clearing caches and refreshing browser couple of times was necessary.

Status: Needs review » Needs work

The last submitted patch, 39: dropbutton-style-1989470-38.patch, failed testing.

webchick’s picture

Hm. A fail in ThemeHandlerTest sounds like it could be legit, but let's re-test and find out...

webchick’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 39: dropbutton-style-1989470-38.patch, failed testing.

The last submitted patch, 39: dropbutton-style-1989470-38.patch, failed testing.

LewisNyman’s picture

Status: Needs work » Needs review
FileSize
911 bytes
12.57 KB

It seems that there is a test that checks the stylesheets loaded in the Seven info file actually exist.

webchick’s picture

Awesome, this is soooo close!

Checked node form, manage fields page, views UI, and config page in Firefox, Chrome, and Safari. Looks awesome in all three!

The only thing that seemed odd to me is that on some tables, e.g. the Manage Fields page and the Configuration Synchronization page, have what look like EXCEPTIONALLY LARGE DROPBUTTONS relative to the size of other things, esp. when they have add actions there, like:

Big table dropbuttons, small add link

But other places these look like I would expect (i.e. relative to their current size), like the Views main listing:

Normal sized drop buttons.

If it's possible to tweak this quickly, I'm happy to RTBC and commit this. If it's possible to do by Monday, it could go into alpha7 and that would be amazing. :D If not, no worries, we can catch it next time...

Also, this is off-topic (I think), but what's the plan for these "kinda sorta not really actually a dropbutton" buttons on the Views UI? They do look exceptionally odd now that the rest of the buttons on this page look so slick.

Views dropbuttons

Is there a reason we don't convert those to standard dropbuttons as well?

Once again, apologies if any visual inconsistencies are down to caching issues. :( Not marking "needs work" for that reason.

philipz’s picture

Please try this one. It should fix different button size problems.
There's still quite some mix of too many buttons styles in many different files like views_ui styles, buttons styles and dropbuttons styles. I'll dig into that some more next week.

Bojhan’s picture

Actually I'd like us not to fix the Views UI in this issue, its a very special UI and we should carefully consider changes we make to it. Because it might actually be less effective.

webchick’s picture

Yeah, I'm fine pushing that to a follow-up, I was just making sure it was intended to get looked at at some point.

tim.plunkett’s picture

@philipz can you please post interdiffs for every patch? Comparing the two side-by-side is difficult for reviews and posting an interdiff is trivial for patch rollers.

Also screenshots help.

klonos’s picture

FileSize
1.28 KB
tim.plunkett’s picture

Status: Needs review » Needs work
FileSize
12.23 KB
37.97 KB
7.8 KB

Thanks klonos!

We spent a long time making sure these buttons looked right the first time, and when used in listings, I think this is a visual regression. The text is not vertically centered like it used to be, and the button just looks too big for the font.

There's a reason Views had a different size: it looks silly to have huge buttons in line with normal sized text.

Also this one is completely different from the rest...

webchick’s picture

Make sure to "drush cc all" and triple clear caches, or else test on simplytest.me. That's not what the Views UI looks like here, it looks more like the 2nd screenshot of #47. (Of course, it's possible that *I* only double cleared cache on my own local and am in the wrong here! ;))

philipz’s picture

@tim.plunkett sorry for not posting interdiff. You definitely need to clear cache as @webchick said.

LewisNyman’s picture

Status: Needs work » Needs review

If we can I'd like to include changes to Views UI into this issue. It's a lot of work and extra code to make Views UI look as it used to and one of the aims of the style guide is bring more consistency to the whole admin interface. If we can fix all concerns raised by @tim.plunkett and other Views maintainers without actually writing any Views specific CSS that would be great.

If Views requires a smaller text size button the best way would be to create that variant globally the same way we do for regular buttons: .button--small. Maybe that is better in a follow up because requires changing mark up.

webchick’s picture

Yeah, I guess my only feeling is that right now the node form (an extremely user-facing form) looks pretty nasty with only 1/2 of its buttons converted to the new style, and so I'd love to see this in sooner than later. So if we can get Views UI to look passable here, I'd prefer deferring "UBER AWESOME" to a follow-up. But let's see what Tim says.

Testing the latest patch now, stay tuned...

webchick’s picture

Ok this actually looks quite fine to me, but should probably get another review by someone who parses CSS. :)

My concerns about the inconsistent size of dropbuttons are fixed:

Right-sized drop-buttons on manage fields screen

And Views UI looks like this which, apart from the top-left pseudo-dropbutton stuff, looks fine to me:

Same drop-button styles used on most of Views UI

The caveat, of course, is by not fixing the pseudo-dropbuttons here, we are doing to Views UI what we did to the node edit form, which is make it look pretty awful and half-done. However, since Views is a less-frequently-accessed page than the node form (at least by *most* people :D), I'd be ok with this as a stop-gap. But assigning to Tim Plunkett to see what he thinks.

philipz’s picture

This last attempt is based on #46 again + only one change from #48. Nothing more.
I've removed changes to views admin ui files witch makes buttons on view edit page smaller and nicer again.
Also I'm not sure why but now action buttons on node form have correct font-size without overriding made in #48. Maybe some other patches went in and fixed it? Anyway it's good that this is not needed in this patch anymore.

Here's last patch based on #46 + interdiff and screenshots. Tested this in FF, Crome and Safari. Except smaller buttons on view edit page everything else looks like @webchick's screenshots :)

klonos’s picture

tim.plunkett’s picture

Status: Needs review » Needs work
FileSize
8.98 KB
9.13 KB
38.03 KB
44.72 KB

In HEAD, the dropbutton links are still clearly links, since they have blue text and match the other links.
With this patch they are black text, which is not as accessible.

The zebra striping and borders have been removed, making it harder to see where one clickable area begins and the other ends. The rounded corners are also not correct in the Views UI.
HEAD: Only local images are allowed.
PATCH: Only local images are allowed.

Furthermore, the expanded dropbutton is broken now. I tried this in a fresh install in incognito mode after clearing every cache possible.

In HEAD the buttons do not affect their container when expanding, here they force other columns to resize, as well as the rows to grow to fit. This was done purposefully after extensive accessibility and UX testing, so this is a regression.

HEAD:
PATCH:
The shifting of the columns can't really be shown with an image, but the row shifting can. Both are very disorienting, and we worked hard to prevent that the first time around.

In all honestly, I don't see why the dropbuttons need to change. Only the node form doesn't match other buttons and is used alongside them, but that is one-off code. That code was added much after the dropbutton code, and did not have any actual UI review or review from the VDC team (who moved dropbutton in from CTools).

The dropbuttons used on listing pages like admin/structure/types, or in the Views UI, are fine as is.

I would like to see this issue rescoped to fixing the node/add/% button, and that way avoid need for further UX/a11y testing (the tag I added can be removed if that is agreed upon).

tim.plunkett’s picture

In fact, the dropbutton is supposed to just be a variant of #theme => links.

The node form is a complete abuse of dropbuttons, and is the reason it looks so bad.

#1751606: Move published status checkbox next to "Save", under the commit message of "Issue #1751606 follow-up by sun, swentel: Various fixes for content creation page." (not even the actual commit for the issue but a follow-up!) introduced a whole form_pre_render_actions_dropbutton(), in order to trick buttons into looking like dropbuttons.

The buttons in the top right of the Views UI that look off that keep being mentioned but pushed to a follow-up, those are the only other place that dropbuttons are used for non-links, but with a completely different implementation.

So please, leave the dropbutton for actual links alone, and let's undo the damage done with the node/add form, form_pre_render_actions_dropbutton, and non-link dropbuttons.

webchick’s picture

Hm. I'm not sure I totally agree with that. Or at least, when I look up the "drop button" / "split button" pattern on e.g. Google Image search I get pictures like:

http://i.msdn.microsoft.com/dynimg/IC155322.png — Microsoft

http://getbootstrap.com/components/#btn-dropdowns — Twitter Bootstrap

These are very similar to the designs in the Seven Style Guide, and "buttonish", not "linkish." The Seven Style Guide was also developed in concert with the Drupal UX team, so presumably they made it not look like links on purpose?

Or, put another way, is there any other application other than Drupal that styles dropbuttons the way HEAD does?

"Add" etc. in Views as well as "Manage fields" and such initiates an action, so to me buttons are appropriate there.

webchick’s picture

However, the points about not stretching the table row, losing the zebra striping, etc. are all totally valid.

tim.plunkett’s picture

From the original CTools docs:

The dropbutton menu will show up as a button with a clickable twisty pointer to the right. When clicked the button will expand, showing the list of links.

If that was improperly named, then we inherited the bad naming. But it has always been for a list of links.

Everyone has agreed that the node/add button needs to be fixed. But it is a list of buttons, not a list of links.

philipz’s picture

I agree with @tim.plunkett that we could leave the dropbuttons as they are.

I'll focus on fixing current problems with 'droplinks': labels being cut and links expanding in wrong direction. This is a big thing because it looks bad now. This often is worse in languages other than english where many words are longer. I found issue on that problem that is not moving forward #1890266: dropbutton text fails to retain .dropbutton-widget width.

Only local images are allowed.

Expanded to right and cut.

LewisNyman’s picture

The main aim of the style guide is to provide consistency, not just make things look better. When Bojhan or myself have presented the style guide this is the picture we usually show that justifies it.

buttons looking inconsistent

Everyone has agreed that the node/add button needs to be fixed. But it is a list of buttons, not a list of links.

It doesn't actually matter whether the html tag is a link or a form button, it's how we represent these elements to the user.

The comments raised in #61 are all perfectly valid and actionable but I them frustrating because both Ry5n and myself spent a lot of time implementing the original style guide design for dropbuttons in #1899236: Add new Splitbutton render element to eventually replace Dropbutton which would fixed all these problems but I never received any support or feedback from the VDC team. It's a shame we are in the situation where we have to compromise the design in this issue.

tim.plunkett’s picture

Actually that issue received direct criticism. That counts as feedback too.

LewisNyman’s picture

I've gone through the regressions raised and had a go at fixing them. Mainly on the views/content type listing pages. There is still a few glitches on the Views edit pages on dropbuttons that are just one button(?) or dropbuttons that have two items in them. I'll try and get to that this even unless you have any spare time @philipz.

philipz’s picture

OK I will look into those glitches later today.

philipz’s picture

Status: Needs work » Needs review
FileSize
1.78 KB
13.03 KB

@LewisNyman I think I fixed issues on Views edit pages you mentioned.
Also I've added right margin to buttons in tables so they fit better in operations column - they didn't it chrome without this margin.

tim.plunkett’s picture

The layout shifting and bottom left corner glitch are gone, but the zebra striping/boring is still missing

LewisNyman’s picture

Do you think the hover effect on the links is enough or should we add the separating lines as well? I'm not fussed either way but if we can solve the problem with less all the better.

philipz’s picture

Are we talking about zebra striping like the one in Views edit page on buttons in three columns?
There it is applied but it's not looking very good. The style guide does not show any example of this striping and the current HEAD dropbuttons do not have any zebra striping too but they do have separating lines.

I would go here with the separating lines only unless this is accessability requirement.

Zebra striping

LewisNyman’s picture

FileSize
2.33 KB
13.51 KB

Turns out the zebra striping came from an overly broad selector in the views admin CSS. I've also added the separating borders in this patch so we can make a decision with a full view.

philipz’s picture

I really like how this looks now! Also I didn't find any problems in Firefox, Chrome and Safari.

mgifford’s picture

Status: Needs review » Needs work

The last submitted patch, 75: dropbutton-style-1989470-75.patch, failed testing.

dimaro’s picture

Issue tags: +#SprintWeekend2014

I'll do the re-roll the patch.

dimaro’s picture

Status: Needs work » Needs review
Issue tags: +#D8SVQ
FileSize
13.27 KB

Re-rolled #75

philipz’s picture

Status: Needs review » Needs work
FileSize
20.03 KB

Looks good. I tested in FF and Chrome and found one thing only: right border radius on hover.

Publish button on hover

jlbellido’s picture

Issue tags: -#SprintWeekend2014, -#D8SVQ +SprintWeekend2014, +D8SVQ

Changed tags

dimaro’s picture

I'm working on it

dimaro’s picture

Status: Needs work » Needs review
FileSize
13.31 KB
26.96 KB

I have fixed the dropdown's borders issue. Have a look at the following screenshot:
Changes dropbuttons
Notice that i have also removed the outline because it was causing extra borders when the dropdown was expanded.

philipz’s picture

Tested in FF & Chrome. Everything looks good now.
I'm not setting it as RTBC yet as at least one or two people should look on it :)

tim.plunkett’s picture

Since we're losing the zebra striping, we need someone to do an a11y review (WCAG AA, specifically), because it's not really obvious which one you're hovering over.

Otherwise, this looks fine.

Bojhan’s picture

Aren't we using underline to show which one you are hovering over - I thought we were actually improving on WCAG AA here? I seriously doubt our current hover colors on these buttons would validate WCAG AA, the color difference between the two is very small.

mgifford’s picture

Status: Needs review » Needs work

The color contrast looks fine, but without a mouse the tab order really makes it look like you can't click on the buttons.

You can, but it's only at the end of the page after everything else.

There is a a slight effect over the Preview button (like there is with the mouse) but no noticeable over the Save and ... button. When you press enter on the down arrow (there is no indication that you are over it, you just have to guess) it works as expected.

The tab order is wrong and there is no way to tell you are focused on the new drop-down.

About text formats & Text format - are actually in the wrong order too, and that should be changed, but it's a much less serious accessibility issue.

It should be Text format -> About text formats -> Save and publish -> down arrow -> Save as unpublished -> Preview -> Create new revision

LewisNyman’s picture

Status: Needs work » Needs review
FileSize
1.27 KB
13.47 KB

Thanks Mike, how about this?

mgifford’s picture

Status: Needs review » Needs work
FileSize
410.03 KB

Some of this might be bigger than the Dropbutton style update. However there still is no indication that the down arrow has focus. Also, it's probably better to follow the mouse over design change when that does provide a clear pattern that works well (although not for the arrow).

The use of underline is a good addition, particularly when the drop button is open.

klonos’s picture

The use of underline is a good addition,...

and/or we could have the active link text be bolded while the other option(s) are regular text. That would help a bit more to distinguish the active/current menu. I'm not sure if that might cause a width/size shift though.

philipz’s picture

However there still is no indication that the down arrow has focus.

This should be fixed now. Also removed .first classes in favor of :first-child.

we could have the active link text be bolded while the other option(s) are regular text

The buttons' text is bold already without hover so first this requires to change buttons to normal weight.
I tested this idea and as you expected the button's width shifts.

philipz’s picture

Status: Needs work » Needs review

Is the tab order problem going to block this patch from RTBC?

Bojhan’s picture

@klonos No bolding, that changes the width. The style guide states underline lets follow that.

@mike could you explain what is part of this patch and what is a separate issue with the tab order on the content creation screen?

mgifford’s picture

I think that tab order can be a new issue.

tim.plunkett’s picture

Why would we introduce an accessibility regression for the sake of a minor design tweak?

Bojhan’s picture

@Mike Could you clarify whether Lewis his patch resolves the dropdown focus problem? Otherwise we could try to invert the drop down icon upon hover. It's a little funky, but works and is a noticeable enough change (I don't think we tackle this a11y issue now, do we?)

@tim.plunkett I think we are showing in the style issues, that we are committed to resolving a11y issues. Often resolving existing a11y issues that aren't even in the queue yet. The tabbing issue is an existing problem, and we are not resolving it here because its not within scope and probably requires some more discussion because other pages might also be affected.

Bojhan’s picture

Assigned: tim.plunkett » Unassigned

I believe this is wrongly assigned atm.

mgifford’s picture

FileSize
86.16 KB

I applied @LewisNyman & @philipz's patch at the same time right now. The patch in #89 looks like it has the focus that is required. I've just included some shots of the various states of the button using keyboard focus. Seems like this nails it.

I'd assumed that @philipz was just building on #89 and would also include the same effect on focus. It didn't.

philipz’s picture

I was building on #89 and the changes were very minor. More precisely I added :focus rules to dropbutton-action and dropbutton-toggle elements which were not present in patch #89.
The screenshots you've included look exactly like I've seen after applying patch #92.
I'll check again but are you sure you didn't cross/mix the patches? :)

mgifford’s picture

@philipz Not sure why they didn't behave the same. Maybe there was a bug when I installed it on SimplyTest.me. I do wish that SimplyTest.me had a summary of what was submitted so that one could more easily double check after the install is up and running. It seems to be bust right now though.

Ultimately, as long as that behavior is there, then it should be fine.

LewisNyman’s picture

I just confirmed the interdiff.txt in #92 is correct. The patch in #92 should have the improvements from #82.

LewisNyman’s picture

pakmanlh’s picture

Status: Needs review » Reviewed & tested by the community

The patch in #92 works properly, including the focus behavior.

Wim Leers’s picture

Status: Reviewed & tested by the community » Needs work
FileSize
8 KB

Found two minor problems.

  1. The webkit focus outline is added to the dropdown arrow on focus; this is undesirable AFAIK. Setting outline: none on that element fixes it.
  2. When using the keyboard to navigate: if I tab onto the dropbutton, the primary action gets a different shade of blue — this is great. When I then tab to the dropdown arrow, then that shade moves here — even better! If I now press enter to show the other actions, the dropdown arrow expands to make room for the other actions, and focus remains on the dropdown arrow. I'd expect that different shade to persist, but it does not. As a keyboard navigation user, I'm now lost: I don't know which thing has focus anymore.
  3. When using the keyboard to navigate: if I tab onto the dropbutton, the primary action gets a different shade of blue — this is great. However, once I've toggled the dropdown arrow to show all available actions, then *none* of the actions get that shade anymore, not even the primary action. The underline helps, but it's an inconsistent UX, especially combined with point 2.
LewisNyman’s picture

Status: Needs work » Needs review

I realised half way through this patch why there were no background styles on hover/focus, the shapes of the inner buttons are tricky to manage. Anyway I've been over the dropbuttons on the content creation page, views listing table, and views edit page. and ended up having to rewrite quite a bit of the styling. I also realised that we were missing the active styles! That's the best part!

I realise the CSS for this is seriously WET, this issue was only intended to be a stop gap to get the dropbuttons consistent with the regular buttons before we do a proper clean up of the mark up in #1899236: Add new Splitbutton render element to eventually replace Dropbutton

LewisNyman’s picture

FileSize
11.37 KB
18.78 KB
Wim Leers’s picture

Issue tags: +CSS

Oh noes, sorry about that! :( I can confirm that the problem I described in #106 has been fixed, but I'm afraid this now needs CSS review again.

+++ b/core/modules/views_ui/css/views_ui.admin.theme.css
@@ -1128,6 +1128,7 @@ div.messages {
+  width: auto!important;

@@ -1135,6 +1136,9 @@ div.messages {
+  width: auto!important;

EEK!

LewisNyman’s picture

Issue tags: -Needs accessibility review
FileSize
18.86 KB
855 bytes

That was naughty and I am sorry.

rteijeiro’s picture

Patch applies well and seems to be ok (see screenshots).

Just fixed some missing periods and indentation (see interdiff.txt).

LewisNyman’s picture

Status: Needs review » Needs work

The last submitted patch, 110: dropbutton-style-1989470-110.patch, failed testing.

LewisNyman’s picture

Status: Needs work » Needs review
FileSize
18.75 KB
rteijeiro’s picture

Status: Needs review » Reviewed & tested by the community

Ok, now applies and looks perfect! Let commit this asap :)

tim.plunkett’s picture

  1. +++ b/core/themes/seven/css/components/dropbuttons.css
    @@ -0,0 +1,290 @@
    +/**
    + * Reset styling for all elements.
    + */
    +.js .dropbutton .dropbutton-action > * {
    

    Um what?

  2. +++ b/core/themes/seven/css/components/dropbuttons.css
    @@ -0,0 +1,290 @@
    +/**
    + * Copied styling for .button.
    + */
    +.js .dropbutton-multiple .dropbutton-widget {
    

    Do you mean copied from? Also why wouldn't we just use .button in the markup, instead of duplicating the CSS that will absolutely diverge the next time someone messes with the .button style?

  3. +++ b/core/themes/seven/css/components/dropbuttons.css
    @@ -0,0 +1,290 @@
    +  background-image: -webkit-linear-gradient(top, #fcfcfa, #e9e9dd);
    +  background-image:    -moz-linear-gradient(top, #fcfcfa, #e9e9dd);
    +  background-image:      -o-linear-gradient(top, #fcfcfa, #e9e9dd);
    +  background-image:   linear-gradient(to bottom, #fcfcfa, #e9e9dd);
    

    This indentation is whack.

  4. +++ b/core/themes/seven/css/components/dropbuttons.css
    @@ -0,0 +1,290 @@
    +
    +/**
    + * Rare instances when a dropbutton is actually just a button.
    + * Copied from Seven's buttons.theme.css.
    + */
    +.dropbutton-single .dropbutton-widget {
    +  border: 0;
    +}
    

    I don't see how this is "rare". And again with the copy/paste

  5. +++ b/core/themes/seven/css/components/dropbuttons.css
    @@ -0,0 +1,290 @@
    + * Copied styling from .button--primary.
    + */
    +.js .form-actions .dropbutton .dropbutton-action > * {
    

    Seriously? Why bother using a *cascading* stylesheet if we just copy everything every time?

mgifford’s picture

Status: Reviewed & tested by the community » Needs work

@tim.plunkett - I assume you meant to change the status too.

Suggesting changes is good. Thanks for posting your concerns. "Um what?" really isn't all that helpful.

LewisNyman’s picture

Status: Needs work » Needs review
FileSize
9.79 KB
18.61 KB

@tim.plunkett Yep, there's a really good reason why we're copying CSS instead of reusing it. We tried fixing all the problems with dropbutton in one with #1899236: Add new Splitbutton render element to eventually replace Dropbutton and that didn't work out very well, it was very difficult to fix every implementation of dropbutton in core. This consistent with the approaches we have taken in other style guide issues.

The markup is already bad, it's easier to work with it here and fix the markup that already exists in a follow up issue. Webchick has highlighted that the inconsistency between buttons is a high priority. We already have #2160481: Componentize the dropbutton CSS as a follow up. I'm happy to make more before this gets committed.

I've changed the indentation for the gradient CSS. Which technique is more readable is debatable. It would be nice if we could give specific guidance in our CSS standards.

tim.plunkett’s picture

Issue tags: +Needs screenshots

I think the last thing to do here is provide before and after screenshots of the Views UI in Bartik and Stark, since this changes views_ui.admin.css and views_ui.admin.theme.css (which are not Seven specific).

tim.plunkett’s picture

+++ b/core/modules/views_ui/css/views_ui.admin.theme.css
@@ -1116,15 +1116,8 @@ div.messages {
-.dropbutton-wrapper {
-  font-size: 11px;
...
+.js .dropbutton-wrapper .dropbutton .dropbutton-action > * {
+  font-size: 12px;

@@ -1133,8 +1126,9 @@ div.messages {
-.views-display-top .dropbutton-wrapper a {
-  font-size: 12px;
+.views-display-top .dropbutton-wrapper .dropbutton-widget a {
+  font-size: 11px;

@@ -1142,13 +1136,16 @@ div.messages {
 .views-ui-display-tab-actions .dropbutton-wrapper li a,
 .views-ui-display-tab-actions .dropbutton-wrapper input {
...
-  font-size: 12px;
+  font-size: 11px;

+++ b/core/themes/seven/css/components/dropbuttons.css
@@ -0,0 +1,290 @@
+.dropbutton-single .dropbutton-action a {
...
+  font-size: 14px;
+  font-size: 0.875rem;

The different font sizes were odd before, but now seem even more arbitrary.
This isn't an actionable comment per se, just pointing out that I'm more confused now than I was before :)

LewisNyman’s picture

Aha that's a good point, I went though and removed those redundant/inconsistent font size declarations and everything still looks fine. I also noticed a rounded corner issue that was ccaused by the font size change and a text alignment issue on one views dropbutton that uses input elements.

Here are some before/after screenshots:

Views listing page before

Views listing page after

VIews edit page before

Views edit page after

tim.plunkett’s picture

+++ b/core/modules/views_ui/css/views_ui.admin.theme.css
@@ -1142,13 +1141,15 @@ div.messages {
-  font-size: 12px;

I was looking for screenshots of the Views UI in Bartik and Stark, not just Seven, since you're making changes to a module here.

LewisNyman’s picture

Ok, I added that font size declaration back in, I may of removed it by mistake.

Lots of screenshots!

Are we RTBC worthy? :)

Bès’s picture

Seems ok for me except a little hover on the node creation page. Here is a patch

Before
before

After
after

aboros’s picture

The patch in #123 did not apply. It needed a re-roll, because there was a new css file (dialog.theme.css) added to .info and test code. Here is a re-roll, it applied without errors and dropbuttons look delicious.

Since it's a re-roll, still needs review.

aboros’s picture

FileSize
18.86 KB

And here is the patch i forgot to attach to #124.

stefanos.petrakis@gmail.com’s picture

Assigned: Unassigned » stefanos.petrakis@gmail.com

Reviewing in progress...

stefanos.petrakis@gmail.com’s picture

  1. +++ b/core/themes/seven/css/components/dropbuttons.css
    @@ -0,0 +1,292 @@
    +
    

    please delete or add related comment

  2. +++ b/core/themes/seven/css/components/dropbuttons.css
    @@ -0,0 +1,292 @@
    +
    

    please delete or add related comment

  3. +++ b/core/themes/seven/css/components/dropbuttons.css
    @@ -0,0 +1,292 @@
    +     -moz-transition: all 0.1s;
    +       -o-transition: all 0.1s;
    +          transition: all 0.1s;
    

    is this indentation compliant with the coding standards?

  4. +++ b/core/themes/seven/css/components/dropbuttons.css
    @@ -0,0 +1,292 @@
    +     -moz-transition: none;
    +       -o-transition: none;
    +          transition: none;
    

    is this indentation compliant with the coding standards?

stefanos.petrakis@gmail.com’s picture

Tested the patch, works fine, attached screenshots (*_before_after.png)

stefanos.petrakis@gmail.com’s picture

Status: Needs review » Needs work

Almost done :-)
Needs minor modifications, related with Coding Standards compliance.

aboros’s picture

Status: Needs work » Needs review
FileSize
18.9 KB

I am not sure what you mean by "please delete or add related comment" but i added a @file comment to the beginning of the new css file and removed couple empty lines where they made no sense to me according to this doc: https://drupal.org/node/1887862 Also according to this doc it seems the funky indentations are standard so i kept those.

LewisNyman’s picture

Thanks for the tidy ups. Always good to have more eyes on code. I applied the patch and had a quick double check. Assigning to Tim to make sure his concerns have been address.

tim.plunkett’s picture

Title: Dropbutton style update » Dropbutton style update for Seven
Status: Needs review » Needs work
FileSize
11.62 KB
12.31 KB

The font sizes are still affected for non-Seven themes. Clarifying the title (it's already against that component specifically).

You can see that the "View Page" dropbutton is big enough to overflow its container, and that the "Add" dropbuttons are much bigger.
Bartik before:

Bartik after:

One additional thing I noticed:

--- a/core/misc/dropbutton/dropbutton.css
+++ b/core/misc/dropbutton/dropbutton.css

--- /dev/null
+++ b/core/themes/seven/css/components/dropbuttons.css

All of the files in core are "dropbutton", singular. The new file is "dropbuttons", plural.

aboros’s picture

Assigned: tim.plunkett » aboros

picking up, doing re-roll plus implementing stuff from #132.

aboros’s picture

Assigned: aboros » Unassigned
Status: Needs work » Needs review
FileSize
18.94 KB

Implementing stuff from #132. File name changed to singular, views ui font-size declaration reverted to 11px and overriden in Seven theme dropbutton.css.

tim.plunkett’s picture

Interdiffs are useful...

The problem wasn't the font-size actually.

  1. +++ b/core/modules/views_ui/css/views_ui.admin.theme.css
    @@ -1116,25 +1116,24 @@ div.messages {
    +.js .dropbutton-wrapper .dropbutton .dropbutton-action > * {
    ...
    -.dropbutton li > * {
    ...
       padding: 0.2em 0.75em;
    

    Because the selector is changing, this is now overriding the 0.5em defined in dropbutton.theme.css

  2. +++ b/core/modules/views_ui/css/views_ui.admin.theme.css
    @@ -1116,25 +1116,24 @@ div.messages {
    -  line-height: 1.4555;
    

    This needs to come back, the only line-height declaration is now in Seven only, so Bartik inherits a 20px line-height.

aboros’s picture

I was starting to fix things proposed in #135 when i realised that changing the filename from plural to singular (renaming dropbuttons.css to dropbutton.css) broke the whole thing. When using dropbutton.css as file name, the file does not get included into the html output. Dropbuttons at node forms for instance completely lack styling. Maybe i am just unaware of something new coolness in D8, but if i rename the file to something other than dropbutton.css and change seven.info.yml accordingly, suddenly the stylesheet gets in and node save dropbutton looks sexy again.

I am more than happy to work on it but need guidance.

aboros’s picture

Assigned: Unassigned » aboros
Status: Needs review » Needs work

The proposed filename is: dropbutton.component.css
I will rename the file and also fix other concerns from #135. Also will do my best to provide an interdiff this time ;)

aboros’s picture

Assigned: aboros » Unassigned
aboros’s picture

Status: Needs work » Needs review
FileSize
480.48 KB
170.43 KB
169.69 KB
19.15 KB
1.69 KB

Fixes concerns from #135 and renames dropbutton.css in seven theme to dropbutton.component.css.

Views UI Stark

Views UI Bartik

Views UI Seven

Setting to needs review.

eigentor’s picture

FileSize
116.23 KB

I don't know if this inside the scope for this issue, but a smaller version of the Dropbuttons is missing. Inside the Views UI the buttons are too big and cause overlaps:

New Dropbuttons inside Views UI

Apart from that: awesome Work!

aboros’s picture

Thank you for reviewing. I think it is totally inside the scope. However, i think it works well for me.

And this is a hacked version where i used the inspector to put more words in that h3 and besides the button overlapping with it (which is normal) it still looks ok to me.

Keeping on needs review.

tim.plunkett’s picture

Status: Needs review » Needs work

When did the text get so big again? :(

The longer this drags on, the more I don't understand what we're gaining here.

LewisNyman’s picture

Assigned: Unassigned » LewisNyman

I think it was just a misunderstanding of the feedback. We have some new contributors so let's try and be patient.

I'll take a look at this.

aboros’s picture

Assigned: LewisNyman » aboros

Sorry, i was messing around with font size because i had the suggestion in person at #drupaldevdays. I tried now and it looks like removing the font-size from dropbutton.compontent.css and setting it to 11px in views_ui.admin.theme.css is what is needed.
I assign it to me.
Sorry for messing it up.

aboros’s picture

Here we go, font-size removed from seven and set to 11px in views_ui.admin.theme.css

LewisNyman’s picture

Thanks Aboros! I'm stuck for time today.

eigentor’s picture

FileSize
31.39 KB

I checked 8.x without the patch. The overlap with the header also happens there

Views overlapping Dropbutton

So it is not introduced by this patch. Not to hold things up, it should be posted as an issue for Views.
Also the questions if the buttons are too big for the views UI should probably be a followup.
There may be other places in different UIs that need fine-tuning.

LewisNyman’s picture

Sure as long as we aren't breaking anything or making it worse then we can move other problems to another issue.

LewisNyman’s picture

Status: Needs review » Needs work

The last submitted patch, 145: 1989470-dropbutton-style-145.patch, failed testing.

aboros’s picture

Status: Needs work » Needs review
FileSize
19.07 KB
1.34 KB

Needed a quick reroll. It applies cleanly again.

mgifford’s picture

I haven't looked at this for color contrast, but it is quite likely that the new style will completely overwrite #1858206: Dropbutton background with gradient does not meet WCAG AA standard

Should we mark that one as a duplicate and just make sure that this new style has proper contrast?

tim.plunkett’s picture

That issue has had a working patch for 10 months...

LewisNyman’s picture

@mgifford Yes please do :). If this issue gets committed before #1858206: Dropbutton background with gradient does not meet WCAG AA standard then it would be redundant.

mgifford’s picture

Issue tags: +Accessibility

Ok, I closed that one as a duplicate. Makes sense.

The color contrast there is fine (as it's #0074BD on white), but there should be some on focus and hover states for this button. Can we make the box bolder, or a different color, or something on focus? The down arrow box to expand the dropbutton could be quite a lot different.

This is an important. On focus is particularly important for keyboard only users.

The tab order is also wrong. From here admin/structure/views/view/files#main-content

Right now it seems that you can only get to the Add dropdown after going through after all of the other bucket items in the div (views-ui-display-tab-bucket)

Add should be the first item you tab on in the Fields div. The second should be the down arrow. The third should be File: File ID (Fid) [hidden].

Right now keyboard only users are going to assume that it just doesn't work.

Let me know if you need more clarification.

mgifford’s picture

Status: Needs review » Needs work
LewisNyman’s picture

@mgifford Thanks for looking over this.

Can we make the box bolder, or a different color, or something on focus?

Not exactly sure what you mean by the box?

The tab order is also wrong.

We're trying not to touch the output markup in this patch because it's tricky, so I assume the tabbing order hasn't been introduced here. There are a fair few position absolutes in the views UI that I don't want to refactor here.

Did you also check the primary styling on the node/add page? :-)

mgifford’s picture

Status: Needs work » Needs review
FileSize
10.69 KB
16.11 KB

@LewisNyman This is a bigger patch than I probably need, but essentially for the most part focus & hover really should act the same way. There may be places where it is better to make focus more prominent, but it should never be less prominent. In the patch in 151 it was less prominent.

But ya, as it says clearly here http://www.outlinenone.com/

Don't use outline: 0; or outline: none;

Focus is important - http://24ways.org/2009/dont-lose-your-focus/

This is especially important for the toggle.

I checked and tab order is wrong in Core now, so not related to this patch. Sorry.

Bojhan’s picture

I cant evaluate this patch, since it removes most of the earlier introduced styling?

LewisNyman’s picture

Status: Needs review » Needs work

hmm the above patch looks like it includes tabs styling changes? @mgifford do you have an interdiff?

mgifford’s picture

Sorry, I got carried away with the inconsistencies in hover/focus behavior. Here's a better patch and an interdiff.

Main things, outline is important and shouldn't just be removed unless it is replaced with similar behavior.

In most cases where hover is used, focus should be too. I'll make a new issue about that.

mgifford’s picture

Go bot. Also, follow-up issue from #158 #2249995: Clean up hover/focus - In Seven

Bojhan’s picture

@mgifford I think most of these hover issues would be resolved if we actually try to get closer to the design thats in the OP. Take a look at https://groups.drupal.org/node/283223#Split_Buttons_and_Dropbuttons we already resolved most of these a11y issues.

LewisNyman’s picture

Status: Needs work » Needs review
mgifford’s picture

@Bojhan I like the designs in Split Buttons and Dropbuttons on GDO.

There isn't actually a state for focus though listed. Active is and that might be what is meant there, but then there shouldn't be a hand for the pointer.

As long as hover/focus operate the same way, in most cases this will be just fine. Focus just wasn't addressed in these patches or in some other places in Seven.

LewisNyman’s picture

Issue tags: -Needs screenshots

@mgifford Just checking there's nothing actionable left from your perspective? Are we one good review away from RTBC? :-)

mgifford’s picture

@LewisNyman Which patch? The one in #151 or #161? I don't think we have something that resembles https://groups.drupal.org/node/283223#Split_Buttons_and_Dropbuttons and even then I'm not entirely sure given the set of images in the example.

LewisNyman’s picture

@mgifford No, we started trying to implement the original design in #1899236: Add new Splitbutton render element to eventually replace Dropbutton but ran into tons of problems because it required html changes. This issue is a CSS only stop gap to implement part of the design, so the content creation page doesn't look so weird. I'll be on IRC today if you want to chat.

mgifford’s picture

In that case, I think we're "one good review away from RTBC". And I assume we're talking about #151.

I'll try and find you on IRC to see if I can get some clarification about when/where to best do accessibility testing on the end feature.

mgifford’s picture

After talking to @LewisNyman on IRC we decided to just add in the outline into core/misc/dropbutton/dropbutton.css into the patch in #151. Or about the first 20 lines of:

https://drupal.org/files/issues/interdiff-1989470.txt

This should provide the minimal accessibility required to get this into Core.

The other changes in #161 will go into #2249995: Clean up hover/focus - In Seven.

LewisNyman’s picture

We noticed the latest patch didn't include the dropbutton.component.css file for the seven theme. I grabbed it from #161 along with the changes from #170. I removed the background color changes on hover that was in the base system styling because they were causing visual issues and seemed unnecessary. I had a test over the pages with Stark and Bartik as well and the only issues I saw were the new bottom borders introduced by #890362: Links should not be indicated by color only

Manuel Garcia’s picture

Status: Needs review » Reviewed & tested by the community

Patch looks good to me.

I've checked the dropbutton in:

  • admin/structure/views
  • editing a view
  • content creation page (save and publish / save as unpublished)

Everything looks nice to me there.

I've also checked on Bartik, nothing is broken by this patch (looks as before).

mgifford’s picture

@LewisNyman - woops.. Sorry about dropping the file. Glad to see it's now RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 171: 1989470-dropbutton-style-171.patch, failed testing.

mgifford’s picture

Status: Needs work » Needs review
tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Back to RTBC per #172.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Phew! Thanks for all the refining. :)

Gábor Hojtsy’s picture

Yay, thanks a lot! Another polished piece we can enjoy!

eigentor’s picture

FileSize
116.2 KB

Sorry to rain on the parade.
But at least as the Views UI is concerned, the Buttons are still too big and overlap the space that they are meant to stay in.

Dropbutton update in Views interface

I intalled the latest 8.x from simplytest.me, so I assume this should mirror this patch

So should I post a followup "fine-tune size of dropbuttons?"

I checked core/misc/dropbutton/dropbutton.css, so the version I installed appears to contain the latest patch that was committed.

LewisNyman’s picture

Status: Fixed » Needs review
FileSize
545 bytes
200.17 KB

Thanks for catching that. I tried reducing the font size down the 10px, it looks a bit better in my opinion. This doesn't look like a any changes fell out in a later patch, which is a good thing.

Bojhan’s picture

Issue tags: +frontend
Bojhan’s picture

Status: Needs review » Reviewed & tested by the community

Ok, so we fixed this tiny Views issue. That's oke, I am not sure how we didn't spot it earlier.

tim.plunkett’s picture

Status: Reviewed & tested by the community » Needs work
FileSize
10.11 KB
10.74 KB

Dropbuttons also look awful when AJAX is involved.
The throbber is contained by the button :(

Try enabling or disabling a view. Here is is with both throbber types:

Bojhan’s picture

I have no idea, why we would contain it in the button. I thought its normal to just show the throbber in the middle of the screen. Anyways, something we should fix.

LewisNyman’s picture

@tim.plunkett You're right, we ended up having to set the dropbutton to position absolute to prevent it from shifting the table columns around.

I think we can be fix this in #2207695: Expand the throbber API to include a 'full screen' option, see comment #17:

@Manuel I think we could fix the problem with the styling by moving where the fullscreen throbber is inserted on the page. We could just append it to the page wrapper, it doesn't need to sit alongside the element.

There is also #1847916: Replace the ajax-progress-throbber div with a class

Gábor Hojtsy’s picture

FileSize
21.41 KB

Sidenote: do we have issues for resolving this in Bartik? I could not find one. Looks very basic in Bartik now:

(So bad it prompted me to file and resolve #2276387: Translate routes should properly inherit admin path use from edit route quickly, which is a good thing in itself).

emma.maria’s picture

For #186 I have created this issue #2278415: Bartik dropbutton styling looks bad

tim.plunkett’s picture

Apparently this broke Stark as well...
So 2/2 on breaking other themes.

#2282599: Dropdown menus in most of core are broken in Stark

LewisNyman’s picture

We didn't break Bartik. That's how it always looked.

ngocketit’s picture

There seems to be a long discussion here but I don't know why the vertical-align of td, th was changed to 'top' instead of 'middle' as it used to be. As a consequence, we now have a bad looking on content listing view where the texts are not vertically centered within the rows.

LewisNyman’s picture

Assigned: aboros » Unassigned

@ngocketit Shall we open a new issue to investigate? This one is far too long and I think the problem that you reported isn't simple.

ngocketit’s picture

yuki77’s picture

Assigned: Unassigned » yuki77
rteijeiro’s picture

Issue tags: +FUDK
jwilson3’s picture

So where are we. Seems like the last issue reported was #183 (ajax throber inside the dropbutton).

Now that #2207695: Expand the throbber API to include a 'full screen' option is in I think we're unblocked to fix that piece.

G-raph’s picture

Can anybody please tell me what still needs to be done in this ticket (because I can't figure it out anymore :)?
This issue is blocking #2278415: Bartik dropbutton styling looks bad. Thx!

jwilson3’s picture

@G-raph: I just did, in #195 :)

Also, the bug that turned up in #2278415 needs to be elaborated here, so it can be discussed and addressed.

yuki77’s picture

Assigned: yuki77 » Unassigned
LewisNyman’s picture

Status: Needs work » Needs review

It looks like the only thing left to do here is review the patch to reduce the Views UI font size in #180

yuki77’s picture

I think there are

1) Fix the styling on ajax loading (e.g. disabling/enabling views) #183
2) Reduce the font size (done in the last patch)
3) Do something about the css on .js .formactions .dropbutton-widget which is overwriting the css in issue 2278415
https://www.drupal.org/node/2278415
https://www.drupal.org/files/issues/2278415-postponed.jpg

Are there more?

G-raph’s picture

1) Fix the styling on ajax loading (e.g. disabling/enabling views) #183
=> done in this patch (see screenshots)
2) Reduce the font size (done in the last patch)
=> done in previous patch
3) Do something about the css on .js .formactions .dropbutton-widget which is overwriting the css in issue 2278415
=> I fixed issue#2278415 without this ticket blocking it. So we don't need to change the css and this is no longer applicable.

Patch in attach. Please review.

pfrenssen’s picture

Issue summary: View changes

Updated the "remaining tasks" in the summary.

pfrenssen’s picture

FileSize
5.42 KB

The change looks good in LTR languages, but support for RTL languages still needs to be added.

G-raph’s picture

FileSize
840 bytes
589 bytes
6.65 KB
5.04 KB

Keep forgetting the RTL :) Fixed it.

New patch in attach.

pfrenssen’s picture

Status: Needs review » Reviewed & tested by the community

Looking good! I'm no frontend developer, but the fixes are straightforward enough for me to understand. Tentatively RTBC'ing.

alexpott’s picture

Status: Reviewed & tested by the community » Needs review

This really deserves an new issue - the issue title is "Dropbutton style update for Seven" but we're only touching views files - how come? Also considering drop buttons are general now is this the right place for this?

LewisNyman’s picture

Status: Needs review » Fixed

Sounds like a good call, we should let this issue die peacefully now.

New issue: #2346931: Dropbutton AJAX throbber looks awful

Status: Fixed » Closed (fixed)

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

Manuel Garcia’s picture