@hashicorp/hashi-alert-banner
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -124,5 +124,10 @@ 'use strict'; | ||
{ 'class': 'text' }, | ||
text, | ||
preact.h( | ||
'span', | ||
null, | ||
text | ||
), | ||
' ', | ||
link_text && preact.h( | ||
'span', | ||
{ 'class': 'link-text' }, | ||
@@ -129,0 +134,0 @@ link_text |
@@ -44,4 +44,4 @@ import { h, Component } from 'preact' | ||
<div class="text"> | ||
{text} | ||
<span class="link-text">{link_text}</span> | ||
<span>{text}</span>{' '} | ||
{link_text && <span class="link-text">{link_text}</span>} | ||
</div> | ||
@@ -48,0 +48,0 @@ <span |
@@ -39,3 +39,3 @@ import { expect } from 'chai' | ||
.text() | ||
).to.equal(propValue('text') + propValue('link_text')) | ||
).to.equal(propValue('text') + ' ' + propValue('link_text')) | ||
}) | ||
@@ -42,0 +42,0 @@ |
{ | ||
"name": "@hashicorp/hashi-alert-banner", | ||
"description": "alert banner with text and a link", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"main": "dist", | ||
@@ -18,3 +18,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "263ef7a79695418e81d65ac503bccdf046fd6ba3" | ||
"gitHead": "f51b05c7e65befc97d9d3c872960d6bc19997ab2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20552
700