mirror of
https://github.com/bitwarden/browser
synced 2026-02-18 02:19:18 +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>
21 lines
637 B
HTML
21 lines
637 B
HTML
<ng-container *ngIf="label">
|
|
<fieldset>
|
|
<legend class="tw-mb-1 tw-block tw-text-sm tw-font-semibold tw-text-main">
|
|
<ng-content select="bit-label"></ng-content>
|
|
<span *ngIf="required" class="tw-text-xs tw-font-normal"> ({{ "required" | i18n }})</span>
|
|
</legend>
|
|
<ng-container *ngTemplateOutlet="content"></ng-container>
|
|
</fieldset>
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="!label">
|
|
<ng-container *ngTemplateOutlet="content"></ng-container>
|
|
</ng-container>
|
|
|
|
<ng-template #content>
|
|
<div>
|
|
<ng-content></ng-content>
|
|
</div>
|
|
<ng-content select="bit-hint" ngProjectAs="bit-hint"></ng-content>
|
|
</ng-template>
|