diff --git a/addons/rose/addon/components/rose/form/helper-text/index.hbs b/addons/rose/addon/components/rose/form/helper-text/index.hbs index 4dadb4d55..7b803ae83 100644 --- a/addons/rose/addon/components/rose/form/helper-text/index.hbs +++ b/addons/rose/addon/components/rose/form/helper-text/index.hbs @@ -4,5 +4,9 @@ ...attributes > {{yield}} -{{@linkText}} + {{#if @link}} + {{#if @linkText}} + {{@linkText}} + {{/if}} + {{/if}} diff --git a/addons/rose/addon/components/rose/form/helper-text/index.stories.mdx b/addons/rose/addon/components/rose/form/helper-text/index.stories.mdx index 19d8e4fac..bddd52683 100644 --- a/addons/rose/addon/components/rose/form/helper-text/index.stories.mdx +++ b/addons/rose/addon/components/rose/form/helper-text/index.stories.mdx @@ -11,7 +11,7 @@ Displays helpful messages related to a form field. This component is used by form fields and should not be used directly. ```html - + Helper text ``` @@ -26,7 +26,7 @@ by form fields and should not be used directly. context: { error: boolean('error', false), link: text('link', 'http://www.example.net/'), - linkText: text('linkText', 'link text') + linkText: text('linkText', 'sample link text') }, }}