-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #52 - Added support for adding content before and after all other…
… elements within the color picker.
- Loading branch information
Showing
11 changed files
with
115 additions
and
43 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
6 changes: 5 additions & 1 deletion
6
...ects/iplab/ngx-color-picker/src/lib/components/github-picker/github-picker.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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<ng-content select="[before]"></ng-content> | ||
|
||
<color-presets-component | ||
direction="down" | ||
[columns]="columnsCount" | ||
[(color)]="control.value" | ||
[colorPresets]="control.presets"></color-presets-component> | ||
[colorPresets]="control.presets"></color-presets-component> | ||
|
||
<ng-content></ng-content> |
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
26 changes: 0 additions & 26 deletions
26
src/app/wrap-examples/chrome-picker/chrome-wrapper.component.css
This file was deleted.
Oops, something went wrong.
10 changes: 8 additions & 2 deletions
10
src/app/wrap-examples/chrome-picker/chrome-wrapper.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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
<chrome-picker *ngIf="isVisible" [control]="colorControl"></chrome-picker> | ||
<div *ngIf="isVisible" class="overlay" (click)="overlayClick($event)"></div> | ||
<div class="picker" *ngIf="isVisible"> | ||
<chrome-picker [control]="colorControl"> | ||
<div class="buttons"> | ||
<button type="button" class="btn btn-primary" (click)="applyClick($event)">Apply</button> | ||
</div> | ||
</chrome-picker> | ||
<div class="overlay"></div> | ||
</div> |
43 changes: 43 additions & 0 deletions
43
src/app/wrap-examples/chrome-picker/chrome-wrapper.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,43 @@ | ||
:host { | ||
border: 1px solid #333; | ||
border-radius: 35px; | ||
cursor: pointer; | ||
display: inline-block; | ||
height: 35px; | ||
position: relative; | ||
width: 35px; | ||
} | ||
|
||
.picker { | ||
left: 100%; | ||
position: absolute; | ||
top: 100%; | ||
z-index: 2; | ||
|
||
chrome-picker { | ||
left: 100%; | ||
position: absolute; | ||
top: 100%; | ||
z-index: 2; | ||
} | ||
|
||
.buttons { | ||
padding: 0 12px 12px; | ||
text-align: center; | ||
|
||
button { | ||
padding: .2rem 1rem; | ||
} | ||
} | ||
|
||
.overlay { | ||
background: transparent; | ||
left: 0; | ||
position: fixed; | ||
top: 0; | ||
height: 100%; | ||
width: 100%; | ||
z-index: 1; | ||
} | ||
} | ||
|
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