-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added modal styling with interactivity and docs example
- Loading branch information
1 parent
8b1e2a8
commit 6b8832c
Showing
8 changed files
with
186 additions
and
19 deletions.
There are no files selected for viewing
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
67 changes: 67 additions & 0 deletions
67
...docs/core/popover/examples/popover-closing-example/popover-closing-example.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,67 @@ | ||
<div class="fd-docs-flex-display-helper"> | ||
<fd-popover [closeOnOutsideClick]="false" [focusAutoCapture]="true" [focusTrapped]="true"> | ||
<fd-popover-control> | ||
<button fd-button>Prevent Close on Outside Click</button> | ||
</fd-popover-control> | ||
<fd-popover-body [style.min-width.px]="400"> | ||
<div fd-popover-body-header id="popover-bar-simple-header-1"> | ||
<div fd-bar barDesign="header"> | ||
<div fd-bar-left> | ||
<fd-button-bar | ||
glyph="navigation-left-arrow" | ||
fdType="transparent" | ||
ariaLabel="Back" | ||
></fd-button-bar> | ||
<fd-bar-element><h5 fd-title>Header</h5></fd-bar-element> | ||
</div> | ||
</div> | ||
</div> | ||
<fd-avatar [circle]="true" [style.margin.rem]="1" size="xl" glyph="group"></fd-avatar> | ||
</fd-popover-body> | ||
</fd-popover> | ||
<fd-popover [closeOnEscapeKey]="false" [focusAutoCapture]="true" [focusTrapped]="true"> | ||
<fd-popover-control> | ||
<button fd-button>Prevent Close on Escape Key</button> | ||
</fd-popover-control> | ||
<fd-popover-body [style.min-width.px]="400"> | ||
<div fd-popover-body-header id="popover-bar-simple-header-1"> | ||
<div fd-bar barDesign="header"> | ||
<div fd-bar-left> | ||
<fd-button-bar | ||
glyph="navigation-left-arrow" | ||
fdType="transparent" | ||
ariaLabel="Back" | ||
></fd-button-bar> | ||
<fd-bar-element><h5 fd-title>Header</h5></fd-bar-element> | ||
</div> | ||
</div> | ||
</div> | ||
<fd-avatar [circle]="true" [style.margin.rem]="1" size="xl" glyph="group"></fd-avatar> | ||
</fd-popover-body> | ||
</fd-popover> | ||
<fd-popover | ||
[closeOnEscapeKey]="false" | ||
[closeOnOutsideClick]="false" | ||
[focusAutoCapture]="true" | ||
[focusTrapped]="true" | ||
> | ||
<fd-popover-control> | ||
<button fd-button>Prevent Close on Outside Click & on Escape Key</button> | ||
</fd-popover-control> | ||
<fd-popover-body [style.min-width.px]="400"> | ||
<div fd-popover-body-header id="popover-bar-simple-header-1"> | ||
<div fd-bar barDesign="header"> | ||
<div fd-bar-left> | ||
<fd-button-bar | ||
glyph="navigation-left-arrow" | ||
fdType="transparent" | ||
ariaLabel="Back" | ||
></fd-button-bar> | ||
<fd-bar-element><h5 fd-title>Header</h5></fd-bar-element> | ||
</div> | ||
</div> | ||
</div> | ||
<fd-avatar [circle]="true" [style.margin.rem]="1" size="xl" glyph="group"></fd-avatar> | ||
</fd-popover-body> | ||
</fd-popover> | ||
</div> |
7 changes: 7 additions & 0 deletions
7
...docs/core/popover/examples/popover-closing-example/popover-closing-example.component.scss
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,7 @@ | ||
.fd-docs-flex-display-helper { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-around; | ||
flex-flow: row wrap; | ||
width: 100%; | ||
} |
42 changes: 42 additions & 0 deletions
42
libs/docs/core/popover/examples/popover-closing-example/popover-closing-example.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,42 @@ | ||
import { Component, ViewEncapsulation } from '@angular/core'; | ||
import { AvatarComponent } from '@fundamental-ngx/core/avatar'; | ||
import { | ||
BarComponent, | ||
BarElementDirective, | ||
BarLeftDirective, | ||
BarMiddleDirective, | ||
BarRightDirective, | ||
ButtonBarComponent | ||
} from '@fundamental-ngx/core/bar'; | ||
import { ButtonComponent } from '@fundamental-ngx/core/button'; | ||
import { | ||
PopoverBodyComponent, | ||
PopoverBodyDirective, | ||
PopoverBodyHeaderDirective, | ||
PopoverComponent, | ||
PopoverControlComponent | ||
} from '@fundamental-ngx/core/popover'; | ||
|
||
@Component({ | ||
selector: 'fd-popover-closing-example', | ||
templateUrl: './popover-closing-example.component.html', | ||
styleUrls: ['./popover-closing-example.component.scss'], | ||
standalone: true, | ||
encapsulation: ViewEncapsulation.None, | ||
imports: [ | ||
PopoverComponent, | ||
PopoverControlComponent, | ||
PopoverBodyComponent, | ||
ButtonComponent, | ||
PopoverBodyHeaderDirective, | ||
PopoverBodyDirective, | ||
AvatarComponent, | ||
BarComponent, | ||
ButtonBarComponent, | ||
BarElementDirective, | ||
BarLeftDirective, | ||
BarMiddleDirective, | ||
BarRightDirective | ||
] | ||
}) | ||
export class PopoverClosingExampleComponent {} |
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