mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
* Adjust radio groups margin * Move hint margin to input field * Tweak field spacing * Add story for hint, and fix hint display * Fix label ssue * Revert input margin * Re-add margin to hint * Change font weight * Fix required placement * Add support for required * Change margin of radio group * Remove unnecessary div * Fix long inputs cutting off * Fix radio story * Remove newline --------- Co-authored-by: Will Martin <contact@willmartian.com>
14 lines
466 B
HTML
14 lines
466 B
HTML
<label [class]="labelClasses">
|
|
<ng-content></ng-content>
|
|
<span [class]="labelContentClasses">
|
|
<span>
|
|
<ng-content select="bit-label"></ng-content>
|
|
<span *ngIf="required" class="tw-text-xs tw-font-normal"> ({{ "required" | i18n }})</span>
|
|
</span>
|
|
<ng-content select="bit-hint" *ngIf="!hasError"></ng-content>
|
|
</span>
|
|
</label>
|
|
<div *ngIf="hasError" class="tw-mt-1 tw-text-danger">
|
|
<i class="bwi bwi-error"></i> {{ displayError }}
|
|
</div>
|