Decouple tour triggering from the toolbar

Created on 7 November 2018, about 6 years ago
Updated 22 May 2024, 7 months ago

Problem/Motivation

Split from Allow Tours to be taken by users that cannot access the Toolbar (e.g. anonymous users) Postponed .

Right now it's impossible to trigger a tour without the toolbar. This is because the toolbar tour button HTML ID is hardcoded in core/modules/tour/js/tour.es6.js:

new Drupal.tour.views.ToggleTourView({
  el: $(context).find('#toolbar-tab-tour'),
  model,
});

Proposed resolution

Use a class to trigger the tour, so that other elements are able to do it.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

In earlier releases, it was only possible to start the tour from the toolbar button. Now it's possible to trigger the tour from any HTML element having the js-tour-start-button class. The toolbar tour button #toolbar-tab-tour selector is no more available. Use the .js-tour-start-button class as selector instead.

Feature request
Status

Fixed

Version

2.0

Component
Tour 

Last updated 5 days ago

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

Live updates comments and jobs are added and updated live.
  • Needs release note

    The major change should have a special release note written to summarize the importance of the change. See Write a release note for an issue.

  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Needs accessibility review

    Used to alert the accessibility topic maintainer(s) that an issue significantly affects (or has the potential to affect) the accessibility of Drupal, and their signoff is needed (see the governance policy draft for more information). Useful links: Drupal's accessibility standards, the Drupal Core accessibility gate.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024