Skip to content

Commit

Permalink
fix(item): Fix css overflow overrides for .item-text-wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bradley committed Mar 31, 2014
1 parent 441a21c commit 04b4d77
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
7 changes: 4 additions & 3 deletions scss/_items.scss
Expand Up @@ -202,6 +202,7 @@ a.item-content {
}

.item-text-wrap .item,
.item-text-wrap .item-content,
.item-text-wrap,
.item-text-wrap h1,
.item-text-wrap h2,
Expand All @@ -218,7 +219,7 @@ a.item-content {
.item-body h5,
.item-body h6,
.item-body p {
overflow: hidden;
overflow: visible;
white-space: normal;
}
.item-complex.item-text-wrap,
Expand All @@ -229,8 +230,8 @@ a.item-content {
.item-complex.item-text-wrap h5,
.item-complex.item-text-wrap h6,
.item-complex.item-text-wrap p {
overflow: hidden;
white-space: nowrap;
overflow: visible;
white-space: normal;
}


Expand Down
22 changes: 21 additions & 1 deletion test/html/cards.html
Expand Up @@ -15,7 +15,7 @@
<h1 class="title">Cards</h1>
</header>

<ion-content has-header="true" class="ionic-pseudo">
<ion-content class="has-header">

<div class="card">
<div class="item item-text-wrap">
Expand All @@ -33,6 +33,26 @@ <h1 class="title">Cards</h1>
</div>
</div>

<div class="card">
<div class="item item-complex item-text-wrap">
<div class="item-content">
This is a basic Card with some wrapping text.
This is a basic Card with some wrapping text.
This is a basic Card with some wrapping text.
</div>
</div>
</div>

<div class="card item-text-wrap">
<div class="item item-complex">
<div class="item-content">
This is a basic Card with some wrapping text.
This is a basic Card with some wrapping text.
This is a basic Card with some wrapping text.
</div>
</div>
</div>

<div class="card">
<div class="item item-divider">
I'm a Header in a Card!
Expand Down

0 comments on commit 04b4d77

Please sign in to comment.