Skip to content

Commit be11aff

Browse files
committed
fix(pf3): give select menu higher z-index than input.
1 parent 763c7d4 commit be11aff

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

packages/pf3-component-mapper/demo/demo-schemas/sandbox.js

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,18 @@ const output = {
149149
label: 'Check Box',
150150
title: 'Check Box',
151151
component: components.CHECKBOX,
152-
'options': [
152+
options: [
153153
{
154-
'label': 'Dog',
154+
label: 'Dog',
155155
value: '1',
156156
},
157157
{
158-
'label': 'Cats',
159-
'value': '2',
158+
label: 'Cats',
159+
value: '2',
160160
},
161161
{
162-
'label': 'Hamsters',
163-
'value': '3',
162+
label: 'Hamsters',
163+
value: '3',
164164
},
165165
],
166166
},
@@ -398,6 +398,18 @@ const output = {
398398
title: 'Datepickers',
399399
key: '642',
400400
fields: [
401+
{
402+
component: components.SELECT,
403+
name: 'date_control_select',
404+
label: 'Select',
405+
options: [{
406+
value: 'foo',
407+
label: 'Foo',
408+
}, {
409+
value: 'bar',
410+
label: 'Bar',
411+
}],
412+
},
401413
{
402414
name: 'date_control_1',
403415
label: 'Datepicker',

packages/pf3-component-mapper/src/form-fields/select/select-styles.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ const customStyles = {
107107
paddingTop: isSearchable ? 36 : 5,
108108
paddingBottom: 5,
109109
marginTop: 1,
110+
zIndex: 3,
110111
}),
111112
control: provided => ({
112113
...provided,

0 commit comments

Comments
 (0)