Skip to content

Commit

Permalink
fix(popover): remove min-height from ios, add sass variables
Browse files Browse the repository at this point in the history
sass variables added for min-width and min-height.

closes #7215
  • Loading branch information
brandyscarney committed Jul 8, 2016
1 parent d123464 commit 55bc32d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/components.core.scss
Expand Up @@ -22,7 +22,6 @@
"components/loading/loading",
"components/menu/menu",
"components/modal/modal",
"components/popover/popover",
"components/range/range",
"components/refresher/refresher",
"components/scroll/scroll",
Expand Down
6 changes: 5 additions & 1 deletion src/components/popover/popover.ios.scss
@@ -1,9 +1,12 @@
@import "../../globals.core";
@import "./popover";

// iOS Popover
// --------------------------------------------------

$popover-ios-width: 200px !default;
$popover-ios-min-width: 0 !default;
$popover-ios-min-height: 0 !default;
$popover-ios-max-height: 90% !default;

$popover-ios-border-radius: 10px !default;
Expand All @@ -16,7 +19,8 @@ $popover-ios-arrow-background: $popover-ios-background !default;

.popover-content {
width: $popover-ios-width;

min-width: $popover-ios-min-width;
min-height: $popover-ios-min-height;
max-height: $popover-ios-max-height;

border-radius: $popover-ios-border-radius;
Expand Down
7 changes: 5 additions & 2 deletions src/components/popover/popover.md.scss
@@ -1,9 +1,12 @@
@import "../../globals.core";
@import "./popover";

// Material Design Popover
// --------------------------------------------------

$popover-md-width: 250px !default;
$popover-md-min-width: 0 !default;
$popover-md-min-height: 0 !default;
$popover-md-max-height: 90% !default;

$popover-md-border-radius: 2px !default;
Expand All @@ -17,8 +20,8 @@ $popover-md-item-background: $popover-md-background !default;

.popover-content {
width: $popover-md-width;
min-width: 0;
min-height: 0;
min-width: $popover-md-min-width;
min-height: $popover-md-min-height;
max-height: $popover-md-max-height;

border-radius: $popover-md-border-radius;
Expand Down
2 changes: 0 additions & 2 deletions src/components/popover/popover.scss
Expand Up @@ -34,8 +34,6 @@ ion-popover {

flex-direction: column;

min-height: 200px;

scroll-content {
position: relative;
}
Expand Down
7 changes: 5 additions & 2 deletions src/components/popover/popover.wp.scss
@@ -1,9 +1,12 @@
@import "../../globals.core";
@import "./popover";

// Windows Popover
// --------------------------------------------------

$popover-wp-width: 200px !default;
$popover-wp-min-width: 0 !default;
$popover-wp-min-height: 0 !default;
$popover-wp-max-height: 90% !default;

$popover-wp-border: 2px solid #ccc !default;
Expand All @@ -16,8 +19,8 @@ $popover-wp-item-background: $popover-wp-background !default;

.popover-content {
width: $popover-wp-width;
min-width: 0;
min-height: 0;
min-width: $popover-wp-min-width;
min-height: $popover-wp-min-height;
max-height: $popover-wp-max-height;

border: $popover-wp-border;
Expand Down
2 changes: 0 additions & 2 deletions src/components/popover/test/basic/index.ts
Expand Up @@ -139,8 +139,6 @@ class PopoverRadioPage {
<ion-list-header>Ionic</ion-list-header>
<button ion-item (click)="close()">Learn Ionic</button>
<button ion-item (click)="close()">Documentation</button>
<button ion-item (click)="close()">Showcase</button>
<button ion-item (click)="close()">GitHub Repo</button>
</ion-list>
`
})
Expand Down

0 comments on commit 55bc32d

Please sign in to comment.