question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Theme links in top navigation bars

See original GitHub issue

Due to technical limitations, we couldn’t utilize theme colors fully for links in top navigation bars in the past, e.g. Home, Library, and Bookmarks links in Learn:

links

When a link is active, we use hardcoded white colors

https://github.com/learningequality/kolibri/blob/9048d77029e622b57d95009ab8b968f12dd5d99a/kolibri/core/assets/src/views/Navbar/NavbarLink.vue#L111-L112

where we should use textInverted token.

It should be now possible to refactor NavbarLink to use router-link scoped slot API that’s been released meanwhile. That should allow us to use textInverted token instead of hardcoded white.

User-facing consequences

textInverted token is used to create sufficient contrast when used on dark backgrounds such as tokens.primary. Using hardcoded color instead of the token increases the risk of not having the proper contrast in theme plugins.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marcellamakicommented, Dec 12, 2022

Hi @amitpanwar789 - confirming that I’ve reviewed the current version of NavbarLink.vue and the scope of this issue is up to date and it should be ready to work on!

If you have questions as you are working, please add a comment here and tag me in it, and I will be working reduced hours over the upcoming holidays and New Year, but I will get back to you as soon as possible. Thanks again for offering to contribute to Kolibri 😃

1reaction
marcellamakicommented, Dec 7, 2022

Hi @amitpanwar789! Thank you for your interest in contributing! I’ve done a little bit of refactoring work on the App bar in recent months, so I’m going to review and this issue as necessary to make sure it’s fully up to date and ready to work on. It should be ready by next week. After that, we would welcome your contributions! I’ll assign us both to the issue so we can keep track of it, and then I’ll follow up with you early next week to confirm it should be ready to work on. 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Top Navigation Links - theme-component
discourse2: Summary Custom Top Navigation Links allows you to add links to Discourse top navigation. :eyeglasses: Preview Preview on ...
Read more >
Moodle in English: Adding a link on the top Navigation Bar
I am trying to add a link like a Contact Us or About Us on the top part of our Moodle theme (Navigation...
Read more >
40 Beautiful and Effective Responsive Navigation Menus
If you're looking for excellent examples of navigation menu design, here is a look at more than 40 of the best ones you'll...
Read more >
Navbar - Bootstrap
This class adjusts vertical alignment and horizontal spacing for strings of text. Mix and match with other components and utilities as needed.
Read more >
Collection links on top navigation bar not working on mobile
On my homepage www.ecobeau.co.uk the links on the navigation bar on desktop work well. You can click on the top header collection or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found