Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 134520d

Browse files
committed
fix(list): Addresses issues encountered while testing with OSIO.
1 parent 3b1a495 commit 134520d

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/app/list/examples/list-basic-example.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class ListBasicExampleComponent implements OnInit {
137137
tooltip: 'Do something special'
138138
}]
139139
} as ActionConfig,
140-
icon: 'pficon-warning-triangle-o',
140+
iconStyleClass: 'pficon-warning-triangle-o',
141141
title: 'No Items Available',
142142
info: 'This is the Empty State component. The goal of a empty state pattern is to provide a good first ' +
143143
'impression that helps users to achieve their goals. It should be used when a list is empty because no ' +

src/app/list/examples/list-heading-example.component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66

77
import { Action } from '../../action/action';
88
import { ActionConfig } from '../../action/action-config';
9-
import { EmptyStateConfig } from '../../empty-state/empty-state-config';
109
import { ListConfig } from '../list-config';
1110
import { ListEvent } from '../list-event';
1211

@@ -20,7 +19,6 @@ export class ListHeadingExampleComponent implements OnInit {
2019
actionConfig: ActionConfig;
2120
actionsText: string = '';
2221
allItems: any[];
23-
emptyStateConfig: EmptyStateConfig;
2422
items: any[];
2523
listConfig: ListConfig;
2624
selectType: string = 'checkbox';
@@ -174,7 +172,6 @@ export class ListHeadingExampleComponent implements OnInit {
174172

175173
this.listConfig = {
176174
dblClick: false,
177-
emptyStateConfig: this.emptyStateConfig,
178175
multiSelect: false,
179176
selectItems: false,
180177
selectionMatchProp: 'name',

src/app/list/list.component.less

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
// For displaying close button in expansion area
2020
.pfng-list-expansion {
2121
position: relative;
22+
.list-pf-content {
23+
flex-grow: 1;
24+
}
2225
}
2326

2427
// For displaying a heading above the list
@@ -40,9 +43,14 @@
4043
pointer-events: auto;
4144
}
4245

46+
// Override top border for heading
47+
&.list-pf-item {
48+
border-top: none;
49+
}
50+
4351
// Override font for normal heading text
4452
.list-pf-title {
45-
font-size: @font-size-base;
53+
font-size: inherit;
4654
font-weight: normal;
4755
}
4856

0 commit comments

Comments
 (0)