forked from edcarroll/ng2-semantic-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(modal): Fixed modal positioning for SUI v2.3 (edcarroll#362) (Closes
edcarroll#371) * fix(dimmer): Fixed dimmer to work correctly with SUI v2.3.0 * fix(modal): Fixed modal positioning for SUI v2.3.0 * chore: Updated SUI version to 2.3.1 * chore: Fixed typescript dependency version * feat(modal): Added isCentered property * doc(modal): Updated API description * docs(modal): Fixed a typo in a property description * fix(modal): Fixed barrel reference & private `HostBinding`
- Loading branch information
Showing
7 changed files
with
57 additions
and
32 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Component, HostBinding, Renderer2, ElementRef, ChangeDetectorRef } from "@angular/core"; | ||
import { SuiDimmer } from "../../dimmer/internal"; | ||
|
||
@Component({ | ||
selector: "sui-modal-dimmer", | ||
template: `<ng-content></ng-content>`, | ||
styles: [` | ||
:host.ui.dimmer:not(.hidden) { | ||
transition: none; | ||
overflow-y: auto; | ||
display: flex !important; | ||
} | ||
`] | ||
}) | ||
export class SuiModalDimmer extends SuiDimmer { | ||
|
||
@HostBinding("class.page") | ||
@HostBinding("class.modals") | ||
public readonly hasClasses:boolean; | ||
|
||
constructor(renderer:Renderer2, element:ElementRef, changeDetector:ChangeDetectorRef) { | ||
super(renderer, element, changeDetector); | ||
this.hasClasses = true; | ||
this.isClickable = false; | ||
} | ||
} |
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