Skip to content

robert-carroll/canvaslms-global-custom-navigation

Repository files navigation

CanvasLMS - Global Custom Navigation

This version of the Global Custom Navigation shuffles it all together.

! Always review and test in beta before deploying to production

Features

  • No jQuery
  • All Languages including Left To Right and Right To Left
  • Global and Responsive (mobile) navigation icon creation
  • 3 svg options for icon: instructure icons, external svg, inline svg
  • Tray for both Global and Responsive navigation
  • Tray list can be:
    • basic list (ex; accounts)
    • grouped (ex; published|unpublished courses)
      • ungrouped in responsive nav tray (ex: responsive courses tray)
  • Role Callback
  • Tray Callback or Throwback
  • Custom High Contrast Logo considerations

Navigation Item Settings & Setup

The files in the js/ directory are ready for use. They include mostly minified versions with examples included for configuring options.

The files in the css/ directory for the associated features can be added to your Themes CSS file.

Docs

Some guides on how to setup and configure features and customizations:

Development & Testing Files

The files in the root of this repo are for testing and development:

  • global-custom-nav.js includes all features with examples
  • global-custom-nav-items.js only handles and includes examples basic navigation item icons
  • global-custom-nav-context-items.js nav items only that handle global nav active class context
    • active class context refers to a course or account, and when the user is within that Canvas route, the item icon will show the active class and appear selected.

Contributions & Feedback

Always welcome, discuss in the community, or PR's and issues if you enjoy committing.

Custom Contributions

There are directories in this repository for Custom Callbacks (for custom trays) and Custom Throwbacks. If you or your institution develop one and would like it shared for others to use, please consider adding it to this repository and those directories. This will provide examples, and allow others to utilize and support them as well as make them easier to find. You could also place a forwarding link if you host it in your repository.

Contributors

There are snippets and concepts in this code revolving around conversations and contributions by:

  • James mutations/append css/clones
  • jsimon3 responsive tray
  • dbrace instui icons
  • JACOBSEN_C roles
  • hechla icon placement
  • cesbrandt easily readable role conditions
  • Code-with-Ski language direction detection, tray transition and classes
  • threads that have been archived
  • notes from 2020
  • the community for its feedback

About

One Global Custom Navigation Tool for CanvasLMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published