Skip to content

Commit fdd430f

Browse files
committed
Added styling for pf3 select stretching
1 parent 968522d commit fdd430f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/pf3-component-mapper/demo/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const selectSchema = {
2020
menuIsOpen: true,
2121
isClearable: true,
2222
multi: false,
23+
placeholder: 'Super long option label, Super long option label, Super long option label, Super long option label, Super long option label, Super long option labelSuper long option label, Super long option labelSuper long option label, Super long option labelSuper long option label, Super long option labelSuper long option label, Super long option labelSuper long option label, Super long option labelSuper long option label, Super long option label',
2324
validate: [{
2425
type: 'required-validator'
2526
}],

packages/pf3-component-mapper/src/form-fields/select/react-select.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,17 @@ div.field-group {
141141
}
142142
.ddorg__pf3-component-mapper__select__value-container {
143143
margin-right: 8px;
144+
height: 24px;
144145
}
145146
.ddorg__pf3-component-mapper__select__single-value {
146147
font-size: 12px;
147148
margin-left: 0;
148149
font-weight: 600;
149150
color: rgb(54, 54, 54);
150-
text-overflow: clip;
151-
max-width: 100%
151+
max-width: 100%;
152+
position: relative;
153+
}
154+
.ddorg__pf3-component-mapper__select__placeholder {
155+
position: relative;
152156
}
153157
}

0 commit comments

Comments
 (0)