mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +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>
15 lines
326 B
TypeScript
15 lines
326 B
TypeScript
import { Directive, HostBinding } from "@angular/core";
|
|
|
|
// Increments for each instance of this component
|
|
let nextId = 0;
|
|
|
|
@Directive({
|
|
selector: "bit-hint",
|
|
host: {
|
|
class: "tw-text-muted tw-font-normal tw-inline-block tw-mt-1",
|
|
},
|
|
})
|
|
export class BitHintComponent {
|
|
@HostBinding() id = `bit-hint-${nextId++}`;
|
|
}
|