Skip to content

Commit

Permalink
Patterns: Remove custom styles from Table of Contents block
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed May 11, 2023
1 parent ed282e9 commit 57fa8cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<!-- wp:wporg/sidebar-container -->
<!-- wp:search {"label":"<?php esc_attr_e( 'Search', 'wporg' ); ?>","showLabel":false,"width":100,"widthUnit":"%","buttonText":"<?php esc_attr_e( 'Search', 'wporg' ); ?>","buttonPosition":"button-inside","buttonUseIcon":true,"className":"is-style-secondary-search-control","borderColor":"light-grey-1","placeholder":"<?php esc_attr_e( 'Search in the documentation', 'wporg' ); ?>"} /-->

<!-- wp:wporg/table-of-contents {"style":{"elements":{"link":{"color":{"text":"var:preset|color|blueberry-1"}}},"spacing":{"padding":{"top":"var:preset|spacing|20","right":"var:preset|spacing|20","bottom":"var:preset|spacing|20","left":"var:preset|spacing|20"}}},"backgroundColor":"blueberry-4","textColor":"blueberry-1"} /-->
<!-- wp:wporg/table-of-contents /-->
<!-- /wp:wporg/sidebar-container -->
21 changes: 0 additions & 21 deletions source/wp-content/themes/wporg-developer-2023/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,27 +189,6 @@
}
}
}
},
"wporg/table-of-contents": {
"color": {
"background": "var(--wp--preset--color--blueberry-4)",
"text": "var(--wp--preset--color--blueberry-1)"
},
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
},
"elements": {
"heading": {
"typography": {
"fontSize": "var(--wp--preset--font-size--normal) !important"
}
},
"link": {
"color": {
"text": "inherit"
}
}
}
}
}
}
Expand Down

0 comments on commit 57fa8cc

Please sign in to comment.