fix expand and tabs shortcodes to work with strict Content-Security-Policy
When the Content-Security-Policy header has "style-src 'self';" inine style elements like style="display: none" are not honored by browsers, so add CSS to the markup classes and style them display: none
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<div class="book-tabs">
|
||||
{{ range $index, $tab := .Scratch.Get $group }}
|
||||
<input type="radio" name="{{ $group }}" style="display: none;" id="{{ printf "%s-%d" $group $index }}" {{ if not $index }}checked="checked"{{ end }} />
|
||||
<input type="radio" class="book-tabs-radio" name="{{ $group }}" id="{{ printf "%s-%d" $group $index }}" {{ if not $index }}checked="checked"{{ end }} />
|
||||
<label for="{{ printf "%s-%d" $group $index }}">
|
||||
{{ $tab.Name }}
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user