Skip to content

Commit

Permalink
Merge pull request #160 from NHSLeadership/develop
Browse files Browse the repository at this point in the history
v1.3.15
  • Loading branch information
maheshmuralip committed Apr 16, 2024
2 parents 2d507a5 + 4d15790 commit 6f6e925
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 10 deletions.
8 changes: 8 additions & 0 deletions assets/scss/stripe-blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,12 @@ section.nhsuk-section,
background: $color_nhsuk-white;
}
}
}
.wp-block-table.is-style-stripes {

border-color: var(--table--stripes-border-color);
border-bottom: 1px;
td {
border: 1px solid;
}
}
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('lodash', 'react'), 'version' => 'd0903bbbefd3a8565b84');
<?php return array('dependencies' => array('lodash', 'react'), 'version' => '46f392bd2bb89e375438');
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions nhsblocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* Requires at least: 5.0
* Tested up to: 6.2
*
* Version: 1.3.14
* Stable tag: 1.3.14
* Version: 1.3.15
* Stable tag: 1.3.15
*
* @package nhsblocks
*/
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Tags: gutenberg, blocks, nhs
Plugin Name:: NHS Blocks
Plugin URI: https://digital.leadershipacademy.nhs.uk/digital-capabilities/websites/nhs-blocks-user-guide/
Requires at least: 5.3
Tested up to: 6.0
Stable tag: 1.3.14
Tested up to: 6.2
Stable tag: 1.3.15
Requires PHP: 5.6
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -55,6 +55,9 @@ This plugin has been built specifically for use in the NHS, but it is open sourc

== Changelog ==

= 1.3.15 =
* Stripe option for table block

= 1.3.14 =
* Nhs frontend framework upgraded to 8
* Replaced node-sass to dart sass
Expand Down
2 changes: 1 addition & 1 deletion src/14-filters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ wp.domReady(() => {
},
]);

unregisterBlockStyle('core/table', ['regular', 'stripes']);
unregisterBlockStyle('core/table', ['regular']);

registerBlockStyle('core/table', [
{
Expand Down
7 changes: 7 additions & 0 deletions style-gutenburg.css
Original file line number Diff line number Diff line change
Expand Up @@ -17722,6 +17722,13 @@
.edit-post-visual-editor .nhsuk-striped-blocks [data-type="nhsblocks/stripeblock"]:nth-of-type(even), .block-editor-block-styles .nhsuk-striped-blocks [data-type="nhsblocks/stripeblock"]:nth-of-type(even), .block-editor-inserter__menu-help-panel .nhsuk-striped-blocks [data-type="nhsblocks/stripeblock"]:nth-of-type(even) {
background: #ffffff;
}
.edit-post-visual-editor .wp-block-table.is-style-stripes, .block-editor-block-styles .wp-block-table.is-style-stripes, .block-editor-inserter__menu-help-panel .wp-block-table.is-style-stripes {
border-color: var(--table--stripes-border-color);
border-bottom: 1px;
}
.edit-post-visual-editor .wp-block-table.is-style-stripes td, .block-editor-block-styles .wp-block-table.is-style-stripes td, .block-editor-inserter__menu-help-panel .wp-block-table.is-style-stripes td {
border: 1px solid;
}
.edit-post-visual-editor [data-type="nhsblocks/stripesblock"], .block-editor-block-styles [data-type="nhsblocks/stripesblock"], .block-editor-inserter__menu-help-panel [data-type="nhsblocks/stripesblock"] {
width: 100%;
max-width: 100%;
Expand Down
10 changes: 9 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: nhsblocks
Tags: NHS, NHS Digital, NHS Frontend, National Health Service, Leadership Academy
Description: Gutenberg native custom blocks companion plugin for the NHS Nightingale theme (can also be standalone).
Version: 1.3.14
Version: 1.3.15
**********************************************************************************************/
/* stylelint-disable color-no-hex */
Expand Down Expand Up @@ -8330,3 +8330,11 @@ section.nhsuk-section:after,
.nhsuk-striped-blocks [data-type="nhsblocks/stripeblock"]:nth-of-type(even) {
background: #ffffff;
}

.wp-block-table.is-style-stripes {
border-color: var(--table--stripes-border-color);
border-bottom: 1px;
}
.wp-block-table.is-style-stripes td {
border: 1px solid;
}
2 changes: 1 addition & 1 deletion style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: nhsblocks
Tags: NHS, NHS Digital, NHS Frontend, National Health Service, Leadership Academy
Description: Gutenberg native custom blocks companion plugin for the NHS Nightingale theme (can also be standalone).
Version: 1.3.14
Version: 1.3.15
**********************************************************************************************/

Expand Down

0 comments on commit 6f6e925

Please sign in to comment.