Skip to content

Commit 4d8d510

Browse files
authored
docs(playground): fix status labels in card with table sample (#71)
1 parent a2dc436 commit 4d8d510

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

packages/main/test/sap/ui/webcomponents/main/samples/Card.sample.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
.item-content-begin-title {
7474
padding-bottom: 0.25rem;
7575
}
76+
7677
.status-error {color: #b00;}
7778
.status-warning {color: #e9730c;}
7879
.status-success {color: #107e3e;}
@@ -186,7 +187,7 @@ <h3>Card with Table</h3>
186187
<ui5-label>6k USD</ui5-label>
187188
</ui5-table-cell>
188189
<ui5-table-cell data-ui5-slot="cells">
189-
<ui5-label class="status-success">Aproved</ui5-label>
190+
<span class="status-success">Aproved</span>
190191
</ui5-table-cell>
191192
</ui5-table-row>
192193

@@ -201,7 +202,7 @@ <h3>Card with Table</h3>
201202
<ui5-label>2k USD</ui5-label>
202203
</ui5-table-cell>
203204
<ui5-table-cell data-ui5-slot="cells">
204-
<ui5-label class="status-error">Rejected</ui5-label>
205+
<span class="status-error">Rejected</span>
205206
</ui5-table-cell>
206207
</ui5-table-row>
207208

@@ -216,7 +217,7 @@ <h3>Card with Table</h3>
216217
<ui5-label>17k USD</ui5-label>
217218
</ui5-table-cell>
218219
<ui5-table-cell data-ui5-slot="cells">
219-
<ui5-label class="status-warning">Pending</ui5-label>
220+
<span class="status-warning">Pending</<span >
220221
</ui5-table-cell>
221222
</ui5-table-row>
222223
</ui5-table>
@@ -225,6 +226,11 @@ <h3>Card with Table</h3>
225226

226227
<pre class="prettyprint lang-html">
227228
<xmp>
229+
<style>
230+
.status-error {color: #b00;}
231+
.status-warning {color: #e9730c;}
232+
.status-success {color: #107e3e;}
233+
</style>
228234
<ui5-card heading="New Purchase Orders" subtitle="Today" status="3 of 15" class="medium">
229235
<ui5-table class="demo-table content-padding">
230236
<!-- Columns -->
@@ -264,7 +270,7 @@ <h3>Card with Table</h3>
264270
<ui5-label>2k USD</ui5-label>
265271
</ui5-table-cell>
266272
<ui5-table-cell data-ui5-slot="cells">
267-
<ui5-label class="status-error">Rejected</ui5-label>
273+
<span class="status-error">Rejected</span>
268274
</ui5-table-cell>
269275
</ui5-table-row>
270276
...

0 commit comments

Comments
 (0)