-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed issue with dbx-section-page header height not being fixed with a proper overflow - dbx-section-page's header hint text is now inline with the header - dbx-section-page can now be nested - fixed other stylings
- Loading branch information
Showing
10 changed files
with
171 additions
and
24 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
apps/demo/src/app/modules/doc/modules/layout/container/section.page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<dbx-section-page header="dbx-section-page Nesting Example" [onlyHeader]="true"> | ||
<dbx-section-page header="Page 3"> | ||
<dbx-section-page header="Page 4"> | ||
<dbx-section-page header="Page 5"> | ||
<dbx-section-page header="Page 6"> | ||
<dbx-section-page header="Page 7"> | ||
<dbx-section-page header="Page 8"> | ||
<dbx-section-page header="Page 9"> | ||
<p>dbx-section-page components can be nested within eachother and retain the proper heights.</p> | ||
<p>Can be nested a total of 9 times.</p> | ||
</dbx-section-page> | ||
</dbx-section-page> | ||
</dbx-section-page> | ||
</dbx-section-page> | ||
</dbx-section-page> | ||
</dbx-section-page> | ||
</dbx-section-page> | ||
</dbx-section-page> |
9 changes: 9 additions & 0 deletions
9
apps/demo/src/app/modules/doc/modules/layout/container/section.page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Component } from '@angular/core'; | ||
import { LOREM } from '../../shared'; | ||
|
||
@Component({ | ||
templateUrl: './section.page.component.html' | ||
}) | ||
export class DocLayoutSectionPageComponent { | ||
lorem = LOREM; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 10 additions & 3 deletions
13
packages/dbx-web/src/lib/layout/section/section.page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
import { Component } from '@angular/core'; | ||
import { Component, Input } from '@angular/core'; | ||
import { DbxSectionHeaderComponent } from './section.header.component'; | ||
|
||
/** | ||
* Component used to style a page that is made up of app sections. | ||
* | ||
* Should be used on pages that need a section page heading. | ||
* | ||
* Can be nested within eachother, retaining the proper fixed height. | ||
*/ | ||
@Component({ | ||
selector: 'dbx-section-page', | ||
template: ` | ||
<div class="dbx-content-page dbx-section-page"> | ||
<div class="dbx-section-header" [h]="h ?? 2" [header]="header" [icon]="icon" [hint]="hint"> | ||
<div class="dbx-section-header" [h]="h ?? 2" [header]="header" [onlyHeader]="onlyHeader" [icon]="icon" [hint]="hint" [hintInline]="true"> | ||
<ng-content select="[sectionHeader]"></ng-content> | ||
</div> | ||
<ng-content></ng-content> | ||
</div> | ||
` | ||
}) | ||
export class DbxSectionPageComponent extends DbxSectionHeaderComponent {} | ||
export class DbxSectionPageComponent extends DbxSectionHeaderComponent { | ||
@Input() | ||
override hintInline = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters