Review main Merged

77855[TASK] Streamline module link handling

Benjamin Kott CR +2 V +2 Hard +368 −345 updated 02/16/23, 18:56

Commit message

This patch scopes the handling of module links within the module menu
and toolbar. We are now differentiating between module menu events and
module link events and avoiding the double usage of data attributes to
have the scope of the data-attributes assigned.

The internal selectors are now using on data-attributes, this provides
various benefits in contrast to legacy `t3js-...` class based selectors.

- Attributes can contain additional values we need for processing
- We avoid conflicts with for example `*:not([class])` CSS selectors,
  this is helpful to identify links that need special treatment for
  example color adjustments within adaptive components like the
  dropdowns.

While the module menu in its current state still handles the module
links, this patch prepares future work to extract the link management.
Managing the module links in the backend should not be the
responsibility of the module menu.

We are removing all "id" attributes attached to links to avoid conflicts
with other existing identifiers in the backend. The processing has
been adjusted to support this change.

The keyboard navigation is now simplified and adjusted when leaving a
subgroup the selection is now correctly at the parent element and not
the previous parent element.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 25

Show 5 more files