mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
[CL-294] Make section-header work across clients (#9386)
This commit is contained in:
16
libs/components/src/section/section-header.component.ts
Normal file
16
libs/components/src/section/section-header.component.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Component } from "@angular/core";
|
||||
|
||||
import { TypographyModule } from "../typography";
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
selector: "bit-section-header",
|
||||
templateUrl: "./section-header.component.html",
|
||||
imports: [TypographyModule],
|
||||
host: {
|
||||
class:
|
||||
// apply bottom and x padding when a `bit-card` or `bit-item` is the immediate sibling, or nested in the immediate sibling
|
||||
"tw-block has-[+_*_bit-card]:tw-pb-1 has-[+_bit-card]:tw-pb-1 has-[+_*_bit-item]:tw-pb-1 has-[+_bit-item]:tw-pb-1 has-[+_*_bit-card]:tw-px-1 has-[+_bit-card]:tw-px-1 has-[+_*_bit-item]:tw-px-1 has-[+_bit-item]:tw-px-1",
|
||||
},
|
||||
})
|
||||
export class SectionHeaderComponent {}
|
||||
Reference in New Issue
Block a user