Fix highlighting of the New tab after Bootstrap 5 upgrade#1328
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1328 +/- ##
============================================
+ Coverage 70.59% 70.68% +0.08%
Complexity 1646 1646
============================================
Files 32 32
Lines 3744 3786 +42
============================================
+ Hits 2643 2676 +33
- Misses 1101 1110 +9
Continue to review full report at Codecov.
|
|
Kudos, SonarCloud Quality Gate passed!
|
I opened issue #1329 about this. |








Reasons for creating this PR
The New tab wasn't properly highlighted after changes made in the Bootstrap 5 upgrade (#1182). Note that the "New and deprecated" tab variant was working OK.
Before:
After:
Link to relevant issue(s), if any
Description of the changes in this PR
Known problems or uncertainties in this PR
The template code for rendering the tabs is duplicated in five(!) different Twig templates:
changes.twig,group-contents.twig,group-index.twig,light.twigandvocab.twig. This should really be refactored and implemented in just one place. I will open a separate issue about this.Checklist
.sr-onlyclass, color contrast)