Skip to content

Commit

Permalink
Fixed margins of H2
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoensing committed Sep 8, 2023
1 parent c40e343 commit b796087
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => 'befba07e6fc7d1864274');
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => '4fa2c503062f786b6b8e');
2 changes: 1 addition & 1 deletion build/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ function add_accordion_start($html, $attributes, $itemcount, $alignclass)
if ($isAccordionEnabled) {
enqueue_accordion_frontend();
$titleText = esc_html(trim($attributes['title_text'])) ?: __('Table of Contents', 'simpletoc');
$accordionStart = '<h2><button type="button" aria-expanded="false" aria-controls="simpletoc-content-container" class="simpletoc-collapsible">' . $titleText . '</button></h2><div class="simpletoc-content">';
$accordionStart = '<h2 style="margin: 0;"><button type="button" aria-expanded="false" aria-controls="simpletoc-content-container" class="simpletoc-collapsible">' . $titleText . '</button></h2><div class="simpletoc-content">';
$accordionEnd = '</div>';
}

Expand Down
4 changes: 0 additions & 4 deletions src/accordion.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
margin-bottom: 1em;
}

.wp-block-simpletoc-toc h2 {
margin: 0;
}

.simpletoc-collapsible {
background-color: #eee;
color: #444;
Expand Down

0 comments on commit b796087

Please sign in to comment.