Skip to content

Bootstrap Tabs not Working #299

Answered by leflambeur
leflambeur asked this question in Support
May 19, 2021 · 3 comments · 12 replies
Discussion options

You must be logged in to vote

I was right it was the links, but it wasn't Doks fault at all - the K8s shortcode uses for its data toggle where the Bootstrap docs recommend buttons

I changed the references to buttons instead and it works now

Posting the changes here for context:

Before:

<ul class="nav nav-tabs" id="{{ $tab_set_id }}" role="tablist">
	{{- range $i, $e := $tabs -}}
	  {{- $id := printf "%s-%d" $tab_set_id $i -}}
	  {{- if (eq $i 0) -}}
		<li class="nav-item"><a data-toggle="tab" class="nav-link active" href="#{{ $id }}" role="tab" aria-controls="{{ $id }}" aria-selected="true">{{- trim .name " " -}}</a></li>
	  {{ else }}
		<li class="nav-item"><a data-toggle="tab" class="nav-link" href="#{{ $id }}" role…

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
3 replies
@h-enk
Comment options

@cameronelliott
Comment options

@cameronelliott
Comment options

Answer selected by leflambeur
Comment options

You must be logged in to vote
9 replies
@cameronelliott
Comment options

@leflambeur
Comment options

@leflambeur
Comment options

@leflambeur
Comment options

@leflambeur
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants