Skip to content

Commit

Permalink
Fix Table of Contents collapsed style
Browse files Browse the repository at this point in the history
See #491
  • Loading branch information
adamwoodnz committed Nov 16, 2023
1 parent 9809fb4 commit e663e43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes
4 changes: 2 additions & 2 deletions mu-plugins/blocks/table-of-contents/index.php
Expand Up @@ -57,8 +57,8 @@ function render( $attributes, $content, $block ) {

$content = '<div class="wporg-table-of-contents__header">';
$content .= do_blocks(
'<!-- wp:heading {"style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"normal","fontFamily":"inter"} -->
<h2 class="wp-block-heading has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400">' . esc_html( $title ) . '</h2>
'<!-- wp:heading {"style":{"typography":{"fontStyle":"normal","fontWeight":"400"},"spacing":{"margin":{"top":"0","bottom":"0"}}},"fontSize":"normal","fontFamily":"inter"} -->
<h2 class="wp-block-heading has-inter-font-family has-normal-font-size" style="margin-top:0;margin-bottom:0;font-style:normal;font-weight:400">' . esc_html( $title ) . '</h2>
<!-- /wp:heading -->'
);
$content .= '<button type="button" class="wporg-table-of-contents__toggle" aria-expanded="false">';
Expand Down
2 changes: 1 addition & 1 deletion mu-plugins/blocks/table-of-contents/postcss/style.pcss
Expand Up @@ -36,7 +36,7 @@
display: inline-block;
height: var(--local--icon-size);
width: var(--local--icon-size);
mask-image: url(../../../../images/chevron-small.svg);
mask-image: url(../images/chevron-small.svg);
mask-repeat: no-repeat;
mask-position: center;
transform: rotate(-90deg);
Expand Down

0 comments on commit e663e43

Please sign in to comment.