Closed (fixed)
Project:
Domain
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2021 at 16:32 UTC
Updated:
4 Sep 2024 at 18:09 UTC
Jump to comment: Most recent
An active class on link of current domain in domain_nav_block block with the Unordered list of links (ul) option
No class
* Place DomainNavBlock in your page
* Configure it with "Unordered list of links" (ul) option as "Link theme"
* visit homepage
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
sylvainm commentedComment #4
dqdAwesome work. +1 Will review later.
Comment #5
agentrickardThis PR should update domain/tests/src/Functional/DomainNavBlockTest.php
Comment #6
sylvainm commentedComment #7
agentrickardMinor code style issue -- we use
Comment #8
sylvainm commentedFixed, thanks!
Comment #9
tim-dielsThis should be targeted towards the 2.x branch.
Comment #11
tim-dielsI've tested the code and it works as expected, so for me it is RTBC. I created a new MR against 2.x with same code and tested it.
Comment #12
dqdPlease do not set RTBC by own patches without review of others.
Again: Thanks for the report and the work in here. Very much appreciated. But some nitpics:
These changes do not only add active class in case of
$domain->isActive()but also change/replace the['#markup' => Link::fromTextAndUrl($label, $url)->toString()];to an$items[]array withoutLink::fromTextAndUrl()without documentation in the issue comments. This should be documented and explained even if obvious for the patch provider, so that follow up issues can better be tracked down and find its root causes.Comment #13
tim-dielsI only added the code that was already provided. but fair enough I follow that I can not set own patches/MR as RTBC.
What do you need from us to continue in this issue? Some sort of CR so everybody knows what happend and that can be linked in this issue and in the release notes? Or were you thinking about something else?
Comment #15
davps commentedI rebased MR #75 from the current master branch, simplified fix and rewrote the case for testing.
Comment #16
agentrickardLooks good but needs to be rebased.
Fixing.
Comment #17
agentrickardComment #21
agentrickard