Problem/Motivation
The LinkGenerator adds attributes to link. Those are used by JS to se the active class and for other stuff.
Need to reproduce it in the normalize.
Issue fork ui_patterns_settings-3437139
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
grimreaperComment #4
pdureau commentedUI Patterns 2.x port will be done here: #3438432: [2.0.0-alpha2] LinksSettingType: add attributes of the link generator
Comment #5
grimreaperNeed to test potential impact on pagination and breadcrumb.
Comment #6
grimreaperComment #7
grimreaperNo impact on breadcrumb and pagination.
The places set_active_class is used in core are:
- menu: which we want https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co...
- book: which we want for the book menu https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/book/...
- language block: to pass to links template https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/langu...
- links theme key: should not have impact https://git.drupalcode.org/project/drupal/-/blob/11.x/core/includes/them...
- menu local task: https://git.drupalcode.org/project/drupal/-/blob/11.x/core/includes/them..., not used in UI Suite Bootstrap, but maybe a normalize should be applied in https://git.drupalcode.org/project/ui_suite_bootstrap/-/blob/5.0.x/src/H... and pattern should be reworked?
- menu local action: https://git.drupalcode.org/project/drupal/-/blob/11.x/core/includes/them..., bypased in UI Suite Bootstrap https://git.drupalcode.org/project/ui_suite_bootstrap/-/blob/5.0.x/src/H...
Comment #8
christian.wiedemann commentedComment #9
grimreaperrebasing
Comment #10
grimreaperRebased
Comment #12
christian.wiedemann commentedComment #14
christian.wiedemann commented