Skip to content

Using bootstrap tooltips #281

Answered by h-enk
hasithaa asked this question in Support
May 9, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hello @hasithaa, it looks like you stumbled upon a bug.

To make it work for you:

  1. Insert on line 98 of ./config/_default/config.toml:
    [[module.mounts]]
      source = "node_modules/bootstrap"
      target = "assets/js/vendor/bootstrap"
  2. Copy ./node_modules/@hyas/doks/layouts/partials/footer/script-footer.html to ./layouts/partials/footer/script-footer.html
  3. Replace lines 4..5 of ./layouts/partials/footer/script-footer.html:
    {{ $bs := resources.Get "js/bootstrap.js" -}}
    {{ $bs := $bs | js.Build -}}
    with:
    {{ $bs := resources.Get "js/vendor/bootstrap/dist/js/bootstrap.bundle.min.js" -}}

Also, make sure to add the tooltip styles to the whitelister section of ./config/postcss.config.js:

        ...wh…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@hasithaa
Comment options

@h-enk
Comment options

@hasithaa
Comment options

Answer selected by hasithaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants