Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: contribution tag not highlighting as part of issue #10061 #10062

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

himanshisrestha
Copy link
Contributor

What

The contribution tag in the navigation bar does not get highlighted even when on the page which has a contribution panel .
This issue was solved from the product_page.tt.html file where there was an anchor tag with the id="contribution" that was always being rendered on the product page even if the contribution_card_panel exists or not. I added the id="contribution" to the section tag containing the contribution panel and checked for the existence of the panel, if not the anchor tag with id="contribution" will be rendered.

Screenshot

fix-contri.mov

Related issue(s) and discussion

@himanshisrestha himanshisrestha requested a review from a team as a code owner March 31, 2024 17:55
@github-actions github-actions bot added Product Page Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. labels Mar 31, 2024
@himanshisrestha himanshisrestha changed the title fix contribution tag not highlighting as part of issue #10061 fix: contribution tag not highlighting as part of issue #10061 Mar 31, 2024
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.58%. Comparing base (dc04d18) to head (b2558c2).
Report is 200 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10062      +/-   ##
==========================================
+ Coverage   49.54%   49.58%   +0.03%     
==========================================
  Files          67       70       +3     
  Lines       20650    20933     +283     
  Branches     4980     5019      +39     
==========================================
+ Hits        10231    10379     +148     
- Misses       9131     9264     +133     
- Partials     1288     1290       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splendid ! 😎

@alexgarel alexgarel merged commit 3fd174f into openfoodfacts:main Apr 2, 2024
13 of 14 checks passed
@himanshisrestha
Copy link
Contributor Author

Splendid ! 😎

Thanks a lot 😃

@himanshisrestha himanshisrestha deleted the fix-contri branch April 4, 2024 17:03
john-gom pushed a commit that referenced this pull request May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product Page Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The contribution tag in the navigation bar does not get highlighted
3 participants