Skip to content

Commit

Permalink
DI-5486 Reverts previous commit and adds another fix for admin bullet…
Browse files Browse the repository at this point in the history
… points.

What's changed: (about 72 chars)
  • Loading branch information
maheshmuralip committed Jul 11, 2023
1 parent 7711353 commit e78638f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
6 changes: 6 additions & 0 deletions assets/scss/style_variations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,9 @@
margin: 0;
}
}

.components-panel__header.edit-post-sidebar__panel-tabs ul {
padding: 0px;
margin-bottom: 0px;
list-style: none;
}
6 changes: 6 additions & 0 deletions nhsblocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ function nhsblocks_block_classes( $attributes ) {
function nhsblocks_gutenberg_editor_styles()
{
wp_enqueue_style('nhsl-block-editor-styles', plugins_url('style-gutenburg.css', __FILE__), false, '1.1', 'all');
$plugin_version = get_bloginfo('version'); // WP version by default.
$plugin_data = get_plugin_data(plugin_dir_path(__FILE__) . 'nhsblocks.php');
if (isset($plugin_data['Name']) && !empty($plugin_data['Version']) && 'NHS Blocks' === $plugin_data['Name']) {
$plugin_version = $plugin_data['Version'];
}
wp_enqueue_style('nhsblocks-editor-styles', plugins_url('style.min.css', __FILE__), false, $plugin_version, 'all');
}

add_action( 'enqueue_block_editor_assets', 'nhsblocks_gutenberg_editor_styles' ); // Pulls the enqueued file in to standard wp process.
Expand Down
12 changes: 12 additions & 0 deletions style-gutenburg.css

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

6 changes: 6 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9283,6 +9283,12 @@ figure.is-style-nhsuk-table-responsive figcaption {
margin: 0;
}

.components-panel__header.edit-post-sidebar__panel-tabs ul {
padding: 0px;
margin-bottom: 0px;
list-style: none;
}

section.nhsuk-section:nth-of-type(odd) {
background: #f0f4f5;
}
Expand Down
2 changes: 1 addition & 1 deletion style.min.css

Large diffs are not rendered by default.

0 comments on commit e78638f

Please sign in to comment.