Problem/Motivation

This has been reported by @webchick in chat, by @xjm at #2896143-11: Unintentional animation of the body while Settings Tray is installed:

The Edit button on the normal toolbar flickers when Settings Tray is enabled and you navigate in the page.

Proposed resolution

Remove this animation.

Remaining tasks

A video of the problem would be helpful.
Respond to questions in #12

User interface changes

API changes

Data model changes

Comments

Wim Leers created an issue. See original summary.

wim leers’s picture

Status: Active » Needs review
StatusFileSize
new891 bytes

Status: Needs review » Needs work

The last submitted patch, 2: 2897308-2.patch, failed testing. View results

wim leers’s picture

Title: Edit button animation is distracting » Edit toolbar tab animation is distracting
Status: Needs work » Needs review

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

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now 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.

tedbow’s picture

StatusFileSize
new771 bytes

Just a re-roll

tedbow’s picture

Component: outside_in.module » settings_tray.module

Changing to new settings_tray.module component. @drpal thanks for script help! :)

tedbow’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll
jofitz’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new724 bytes

Re-rolled.

tedbow’s picture

Status: Needs review » Needs work
Issue tags: +Needs issue summary update

@Jo Fitzgerald thanks for the re-roll!!!!!!!!!! 🙌

I am trying to test the patch and I don't think I see the difference with the edit button. I think we an update to describe what the patch is actually trying to fix and how to tell the difference.

ivan berezhnov’s picture

Issue tags: +CSKyiv18
tedbow’s picture

Looking at this again I don't this patch fixes it.

Also if I disable the Settings Tray module and just have contextual enable I still the flicker on the edit button(on the right). It is not as noticable because the edit button is not a different color but it is still there.

I think this is because the Edit button is always loaded as hidden and then set visible if there are contextual links on the page in the core/modules/contextual/js/toolbar/views/VisualView.es6.js Drupal.contextualToolbar.VisualView.render()

It would be good to get someone else to confirm that this is the case or is there still some other flicker that I am missing.

If it is a problem with the contextual module should be change it that component and solve it there or is it only a problem because the edit button is a different color.

tedbow’s picture

Status: Needs work » Needs review
StatusFileSize
new728 bytes

Here is the rerolled patch anyways. I don't think it fixes the problem but just so someone else can test it.

wim leers’s picture

This was originally reported by @webchick. Maybe you can ask her to give this another look, to clarify the problem?

tedbow’s picture

I pinged @webchick

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

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now 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.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now 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.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.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.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). 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.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now 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: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

ranjith_kumar_k_u’s picture

StatusFileSize
new725 bytes

Re-rolled for 9.2

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

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative, +Needs screenshots

This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

Was previously tagged for issue summary update in #10 that still needs to happen.

Tagging for screenshots or better yet videos of the before/after.

Thanks!

gauravvvv’s picture

This CSS no longer applies anywhere.

/* Transition the edit icon in the toolbar. */
#toolbar-bar.button.toolbar-icon.toolbar-icon.toolbar-icon-edit:before {
  transition: all 0.7s ease;
}

<button class="toolbar-icon toolbar-icon-edit toolbar-item is-active" aria-pressed="true" type="button" data-drupal-settingstray="toggle" data-once="settingstray">Editing</button> Button no longer has toolbar-bar ID.

<nav id="toolbar-bar" role="navigation" aria-label="Toolbar items" class="toolbar-bar clearfix js-settings-tray-edit-mode" data-offset-top="" data-once="admin-toolbar-search"> have the id="toolbar-bar" ID.

quietone’s picture

This was a bugsmash daily triage target today.

This still needs an issue summary update, taking note that #12 it is reported that the issue happens with the settings tray module enabled and questions were asked there that need to be answered. Since #12 needs to be addressed before working on a patch, I am setting the status to active. I have updated the Issue Summary with some tasks.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Issue tags: +Bug Smash Initiative
saurav-drupal-dev’s picture

StatusFileSize
new396.22 KB

patch not working

tried patch from #22 but not applied please share process to reproduce the issue.

saurav-drupal-dev’s picture

i have tried to replicate the issue on 9.2 and 11.x but unable to reproduce even applied patch manually but nothing happened this css

#toolbar-bar.button.toolbar-icon.toolbar-icon.toolbar-icon-edit::before {
  transition: all 0.7s ease;
}

its not applying any where until i modify it like this but still no flicker issue found.

#toolbar-bar button.toolbar-icon.toolbar-icon.toolbar-icon-edit::before {
   transition: all 0.7s ease;
}

if i am doing something wrong do let me know or explain the issue with more detail so i can replicate it correctly.


Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

quietone’s picture

Status: Active » Closed (outdated)

@saurav-drupal-dev, thanks for testing this!

This must have been fixed sometime in the five or so years since it was opened and the manual testing. Therefor, I am closing this as outdated. I have updated credit.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.