Skip to content

Commit 04b4d77

Browse files
author
Adam Bradley
committed
fix(item): Fix css overflow overrides for .item-text-wrap
1 parent 441a21c commit 04b4d77

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

Diff for: scss/_items.scss

+4-3
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ a.item-content {
202202
}
203203

204204
.item-text-wrap .item,
205+
.item-text-wrap .item-content,
205206
.item-text-wrap,
206207
.item-text-wrap h1,
207208
.item-text-wrap h2,
@@ -218,7 +219,7 @@ a.item-content {
218219
.item-body h5,
219220
.item-body h6,
220221
.item-body p {
221-
overflow: hidden;
222+
overflow: visible;
222223
white-space: normal;
223224
}
224225
.item-complex.item-text-wrap,
@@ -229,8 +230,8 @@ a.item-content {
229230
.item-complex.item-text-wrap h5,
230231
.item-complex.item-text-wrap h6,
231232
.item-complex.item-text-wrap p {
232-
overflow: hidden;
233-
white-space: nowrap;
233+
overflow: visible;
234+
white-space: normal;
234235
}
235236

236237

Diff for: test/html/cards.html

+21-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<h1 class="title">Cards</h1>
1616
</header>
1717

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

2020
<div class="card">
2121
<div class="item item-text-wrap">
@@ -33,6 +33,26 @@ <h1 class="title">Cards</h1>
3333
</div>
3434
</div>
3535

36+
<div class="card">
37+
<div class="item item-complex item-text-wrap">
38+
<div class="item-content">
39+
This is a basic Card with some wrapping text.
40+
This is a basic Card with some wrapping text.
41+
This is a basic Card with some wrapping text.
42+
</div>
43+
</div>
44+
</div>
45+
46+
<div class="card item-text-wrap">
47+
<div class="item item-complex">
48+
<div class="item-content">
49+
This is a basic Card with some wrapping text.
50+
This is a basic Card with some wrapping text.
51+
This is a basic Card with some wrapping text.
52+
</div>
53+
</div>
54+
</div>
55+
3656
<div class="card">
3757
<div class="item item-divider">
3858
I'm a Header in a Card!

0 commit comments

Comments
 (0)