1
0
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:
Victoria League
2024-07-24 12:08:33 -04:00
committed by GitHub
parent c52709e6f0
commit 5a2db79235
7 changed files with 67 additions and 26 deletions

View File

@@ -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;
}