Similar to the Export UI, dead_arm has gotten the dropbutton code to a stable point, and it has a core issue: #1608878: Add CTools dropbutton to core

To remove the CTools dependency in the meantime, we can add it as a submodule.

Comments

tim.plunkett’s picture

Status: Active » Needs review
StatusFileSize
new24.1 KB
tim.plunkett’s picture

The diffstat in that patch includes the addition of the core code, here's what it would be without that:
8 files changed, 24 insertions(+), 349 deletions(-)

:D

tim.plunkett’s picture

Title: Temporarily add a copy of the new dropbutton to views » Use the new Core dropbutton
Status: Needs review » Postponed
StatusFileSize
new16.73 KB

Okay, not worth doing now since it's hopefully going in soon, but here's a patch to use the new core stuff, as of #102

tim.plunkett’s picture

StatusFileSize
new17.79 KB

Updated patch.

nod_’s picture

StatusFileSize
new17.43 KB

Keeping up with latest core patch:

Changed in admin.inc:

    // The Delete, Duplicate and Undo Delete buttons.
    $build['top']['actions'] = array(
      '#prefix' => '<ul class="dropbutton">',
      '#suffix' => '</ul>',
    );

to

    // The Delete, Duplicate and Undo Delete buttons.
    $build['top']['actions'] = array(
      '#prefix' => '<div class="dropbutton-wrapper"><div class="dropbutton-widget"><ul class="dropbutton">',
      '#suffix' => '</ul></div></div>',
    );
tim.plunkett’s picture

StatusFileSize
new17.4 KB

Updated for ViewUI addition

tim.plunkett’s picture

StatusFileSize
new20.08 KB

Better update.

tim.plunkett’s picture

Status: Postponed » Needs review
StatusFileSize
new34.1 KB

The core dropbutton issue has been stalled yet again, and we cannot continue to wait.
Let's do what we did for core listings, and just move the current implementation in as a submodule.

We can track the progress as it happens, and remove it when the time comes.

Here is the diffstat without the added submodule: 12 files changed, 144 insertions(+), 441 deletions(-)
Even then some of that includes the seven/bartik specific theming.

tim.plunkett’s picture

Status: Needs review » Postponed

Pushed!
http://drupalcode.org/project/views.git/commit/c498685

Back to postponed for eventual removal.

tim.plunkett’s picture

Status: Postponed » Fixed
dawehner’s picture

awesome! Really great work!

aspilicious’s picture

Hmm do we rly need the custom styling?

+.views-ui-display-tab-actions .dropbutton-wrapper input:hover {
background: none;
border: none;
}

tim.plunkett’s picture

Assigned: Unassigned » dead_arm
Status: Fixed » Active

Enough has changed in core, we could probably do an inventory of those remaining styles.

xjm’s picture

Title: Use the new Core dropbutton » Do an inventory of old dropbutton styling and remove it where appropriate
Project: Views (for Drupal 7) » Drupal core
Version: 8.x-3.x-dev » 8.x-dev
Component: Code » views_ui.module
Assigned: dead_arm » Unassigned
Issue tags: -CTools dependency +Novice
dead_arm’s picture

Status: Active » Closed (duplicate)

This is a duplicate of #1799498: Improve dropbutton now that Views is in Core.

xjm’s picture

Status: Closed (duplicate) » Active

I thought the issue was to remove views-specific CSS that overrides base dropbutton styling? That won't be covered by the core other issue. Maybe we need to postpone it on that issue?

[lorentz:css | Wed 05:30:16] $ pwd
/Users/xjm/git/drupal/core/modules/views/views_ui/css
[lorentz:css | Wed 05:33:37] $ grep "dropbutton" *
views-admin.bartik.css:.views-ui-display-tab-actions .dropbutton input {
views-admin.bartik.css:.views-ui-display-tab-actions .dropbutton input:hover,
views-admin.bartik.css:.views-ui-display-tab-actions .dropbutton input:focus {
views-admin.bartik.css:.views-ui-display-tab-actions .dropbutton input.form-submit {
views-admin.seven.css:.views-ui-display-tab-actions .dropbutton-wrapper input {
views-admin.theme-rtl.css:.no-js .views-display-top .dropbutton {
views-admin.theme-rtl.css:.views-ui-display-tab-bucket .dropbutton {
views-admin.theme.css:.dropbutton,
views-admin.theme.css:.dropbutton-wrapper input {
views-admin.theme.css:.dropbutton-multiple {
views-admin.theme.css:.dropbutton-widget {
views-admin.theme.css:.dropbutton-multiple .dropbutton-widget {
views-admin.theme.css:.dropbutton-toggle {
views-admin.theme.css:.dropbutton-arrow {
views-admin.theme.css:.dropbutton-wrapper {
views-admin.theme.css:.dropbutton li > * {
views-admin.theme.css:.views-display-top .dropbutton-wrapper {
views-admin.theme.css:.views-display-top .dropbutton-wrapper a {
views-admin.theme.css:.views-ui-display-tab-bucket .dropbutton-wrapper {
views-admin.theme.css:.views-ui-display-tab-actions .dropbutton-wrapper li a,
views-admin.theme.css:.views-ui-display-tab-actions .dropbutton-wrapper input {
views-admin.theme.css:.views-ui-display-tab-actions .dropbutton-wrapper input:hover {

Setting active for someone to confirm.

tim.plunkett’s picture

Status: Active » Postponed

Fair enough, postponing on #1799498: Improve dropbutton. Though as #31 points out, that issue will now have to update the Views CSS at the same time, and might reduce our overrides drastically.

klonos’s picture

Status: Postponed » Active

#1799498: Improve dropbutton got in, so back to active I guess.

tim.plunkett’s picture

Status: Active » Needs review
StatusFileSize
new1.9 KB

Well yep, a lot of this got cleaned up by other issues.
But here's the rest of cleanup we can do.

The remaining CSS is needed to:
properly position the dropbuttons inline with their bucket labels (Filter, Field, Sort, etc)
handle the INPUT elements used alongside the BUTTONs
shrink the text within the Views UI to make everything fit

Status: Needs review » Needs work

The last submitted patch, views-ui-1781406-19.patch, failed testing.

klonos’s picture

Status: Needs work » Needs review

...whaaat? It came green.

kevin morse’s picture

Issue tags: -Novice, -VDC

#19: views-ui-1781406-19.patch queued for re-testing.

jibran’s picture

#19: views-ui-1781406-19.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, views-ui-1781406-19.patch, failed testing.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

  • tim.plunkett committed 2018f01 on 8.3.x
    Issue #1781406 by tim.plunkett, dead_arm: Move a copy of the work-in-...
  • tim.plunkett committed 25fc617 on 8.3.x
    Issue #1781406 by tim.plunkett: Update views_dropbutton for the new...
  • tim.plunkett committed 68305f1 on 8.3.x
    Issue #1781406 by tim.plunkett: Use the new Core dropbutton.
    
  • tim.plunkett committed d395c9a on 8.3.x authored by dead_arm
    Issue #1781406 by dead_arm, tim.plunkett: Follow-up for dropbutton CSS...

  • tim.plunkett committed 2018f01 on 8.3.x
    Issue #1781406 by tim.plunkett, dead_arm: Move a copy of the work-in-...
  • tim.plunkett committed 25fc617 on 8.3.x
    Issue #1781406 by tim.plunkett: Update views_dropbutton for the new...
  • tim.plunkett committed 68305f1 on 8.3.x
    Issue #1781406 by tim.plunkett: Use the new Core dropbutton.
    
  • tim.plunkett committed d395c9a on 8.3.x authored by dead_arm
    Issue #1781406 by dead_arm, tim.plunkett: Follow-up for dropbutton CSS...

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

  • tim.plunkett committed 2018f01 on 8.4.x
    Issue #1781406 by tim.plunkett, dead_arm: Move a copy of the work-in-...
  • tim.plunkett committed 25fc617 on 8.4.x
    Issue #1781406 by tim.plunkett: Update views_dropbutton for the new...
  • tim.plunkett committed 68305f1 on 8.4.x
    Issue #1781406 by tim.plunkett: Use the new Core dropbutton.
    
  • tim.plunkett committed d395c9a on 8.4.x authored by dead_arm
    Issue #1781406 by dead_arm, tim.plunkett: Follow-up for dropbutton CSS...

  • tim.plunkett committed 2018f01 on 8.4.x
    Issue #1781406 by tim.plunkett, dead_arm: Move a copy of the work-in-...
  • tim.plunkett committed 25fc617 on 8.4.x
    Issue #1781406 by tim.plunkett: Update views_dropbutton for the new...
  • tim.plunkett committed 68305f1 on 8.4.x
    Issue #1781406 by tim.plunkett: Use the new Core dropbutton.
    
  • tim.plunkett committed d395c9a on 8.4.x authored by dead_arm
    Issue #1781406 by dead_arm, tim.plunkett: Follow-up for dropbutton CSS...

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

  • tim.plunkett committed 2018f01 on 9.1.x
    Issue #1781406 by tim.plunkett, dead_arm: Move a copy of the work-in-...
  • tim.plunkett committed 25fc617 on 9.1.x
    Issue #1781406 by tim.plunkett: Update views_dropbutton for the new...
  • tim.plunkett committed 68305f1 on 9.1.x
    Issue #1781406 by tim.plunkett: Use the new Core dropbutton.
    
  • tim.plunkett committed d395c9a on 9.1.x authored by dead_arm
    Issue #1781406 by dead_arm, tim.plunkett: Follow-up for dropbutton CSS...

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev
quietone’s picture

Title: Do an inventory of old dropbutton styling and remove it where appropriate » Use the new Core dropbutton
Version: 9.3.x-dev » 8.0.x-dev
Component: views_ui.module » base system
Issue summary: View changes
Status: Needs work » Fixed

This issue was committed very early in Drupal and re-purposed to check for items missed. Instead, making a new issue for the followup work and restoring the meta data of this issue to the time it was committed.

New issue, #3270645: Do an inventory of old dropbutton styling and remove it where appropriate

Thanks

Status: Fixed » Closed (fixed)

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