mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
[CL-305] Allow margin to be disabled for elements at the bottom of a page (#10132)
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
import { coerceBooleanProperty } from "@angular/cdk/coercion";
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { Component } from "@angular/core";
|
||||
import { Component, Input } from "@angular/core";
|
||||
|
||||
@Component({
|
||||
selector: "bit-section",
|
||||
standalone: true,
|
||||
imports: [CommonModule],
|
||||
template: `
|
||||
<section class="tw-mb-6 md:tw-mb-12">
|
||||
<section
|
||||
[ngClass]="{
|
||||
'tw-mb-6 md:tw-mb-12': !disableMargin
|
||||
}"
|
||||
>
|
||||
<ng-content></ng-content>
|
||||
</section>
|
||||
`,
|
||||
})
|
||||
export class SectionComponent {}
|
||||
export class SectionComponent {
|
||||
@Input({ transform: coerceBooleanProperty }) disableMargin = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user