Skip to content

Commit

Permalink
Merge pull request #131 from NHSLeadership/develop
Browse files Browse the repository at this point in the history
v1.3.8
  • Loading branch information
maheshmuralip committed Aug 1, 2023
2 parents fa80b9a + 911bcf5 commit d0dc521
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 10 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('lodash', 'wp-element'), 'version' => '8b236003e6d4ee229659');
<?php return array('dependencies' => array('lodash', 'wp-element'), 'version' => '9ef32ff83650dba1557b');
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.0
*
* Version: 1.3.7
* Stable tag: 1.3.7
* Version: 1.3.8
* Stable tag: 1.3.8
*
* @package nhsblocks
*/
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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.7
Stable tag: 1.3.8
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,11 @@ This plugin has been built specifically for use in the NHS, but it is open sourc

== Changelog ==

= 1.3.8 =
* Accessibility improvement in card region block
* Accessibility fix for NHS simple reveal block
* Support for custom html in NHS simple reveal block

= 1.3.7 =
* Fix for Bullet-points in admin screens

Expand Down
4 changes: 2 additions & 2 deletions src/03-reveal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ registerBlockType('nhsblocks/reveal1', {
const {
attributes: { revealTitle, revealText, withImage },
} = props;
let revealHtmlText = new DOMParser().parseFromString(revealText, "text/html");

return (
<details className="nhsuk-details">
Expand All @@ -128,11 +129,10 @@ registerBlockType('nhsblocks/reveal1', {
<div
className="nhsuk-details__text"
id="details-content-"
id="details-content-"
aria-hidden="false"
>
{withImage === true && <InnerBlocks.Content />}
<RichText.Content multiline="p" value={revealText} />
<RichText.Content multiline="p" value={revealHtmlText.documentElement.textContent} />
</div>
</details>
);
Expand Down
2 changes: 1 addition & 1 deletion src/08-card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<div className="nhsuk-grid-column-width nhsuk-care-card nhsuk-care-card--type">
<div className="nhsuk-care-card__heading-container">
<h3 className="nhsuk-care-card__heading">
<span role="heading">
<span>
<span className="nhsuk-u-visually-hidden">Non-urgent advice: </span>
<span className="nhsuk-care-card__heading-text">
<RichText.Content value={cardTitle} />
Expand Down
2 changes: 1 addition & 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.7
Version: 1.3.8
**********************************************************************************************/
/* stylelint-disable color-no-hex */
Expand Down
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.7
Version: 1.3.8
**********************************************************************************************/

Expand Down

0 comments on commit d0dc521

Please sign in to comment.