Skip to content

Commit

Permalink
fix(hint): make subject on field hint optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Mar 7, 2022
1 parent 54c0869 commit 6fe3eae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ export namespace Components {
/**
* Text of the inputs label
*/
"subject": string;
"subject"?: string;
}
interface BalFieldLabel {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class FieldHint {
/**
* Text of the inputs label
*/
@Prop() subject = ''
@Prop() subject?: string = ''

/**
* Text for the close button.
Expand All @@ -25,7 +25,7 @@ export class FieldHint {
return (
<Host>
<bal-hint closeLabel={this.closeLabel} small={this.small}>
<bal-hint-title>{this.subject}</bal-hint-title>
{this.subject ? <bal-hint-title>{this.subject}</bal-hint-title> : ''}
<bal-hint-text>
<slot></slot>
</bal-hint-text>
Expand Down

0 comments on commit 6fe3eae

Please sign in to comment.