Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class SamAutocompleteMultiselectComponent
/**
* set to false if more/less is not required
*/
@Input() public hideHint : boolean = true;
@Input() public hideHint : boolean = false;
/**
* Used by labelWrapper. Provides a name for input and label.
* See labelWrapper for more detail.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class SamAutocompleteComponent
/**
* set to false if more/less is not required
*/
@Input() public hideHint : boolean = true;
@Input() public hideHint : boolean = false;
/**
* Define autocomplete options
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class LabelWrapper implements AfterViewChecked {
/**
* set to false if more/less is not required
*/
@Input() public hideHint : boolean = true;
@Input() public hideHint : boolean = false;

/**
* set the error message
Expand Down
6 changes: 3 additions & 3 deletions src/ui-kit/wrappers/label-wrapper/label-wrapper.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
class="usa-form-hint"
[attr.id]="hintElId"
[innerHTML]="hint"
[style.overflow]="showToggle && hideHint && !toggleOpen ? 'hidden' : '' "
[style.height]="showToggle && hideHint && !toggleOpen ? '2.88em' : '' ">
[style.overflow]="showToggle && !hideHint && !toggleOpen ? 'hidden' : '' "
[style.height]="showToggle && !hideHint && !toggleOpen ? '2.88em' : '' ">
</div>

<div *ngIf="showToggle && hideHint"
<div *ngIf="showToggle && !hideHint"
class="toggle-more">
<a href="javascript:void(0)"
(click)="toggleHint(toggleOpen)">
Expand Down