Skip to content

Commit 5791712

Browse files
authored
Merge pull request #249 from data-driven-forms/fix-select-clear-icon
fix(pf4): fixed clearable icon position for select.
2 parents 33fe0de + a45fefb commit 5791712

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ const output = {
249249
title: 'Dropdown',
250250
dataType: 'string',
251251
isSearchable: true,
252-
isClearable: false,
252+
isClearable: true,
253253
multi: true,
254254
component: components.SELECT_COMPONENT,
255255
loadOptions: asyncLoadOptions,

packages/pf4-component-mapper/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7-
<link rel="stylesheet" type="text/css" href="https://unpkg.com/@patternfly/patternfly@2.41.0/patternfly-base.css"/>
7+
<link rel="stylesheet" type="text/css" href="https://unpkg.com/@patternfly/patternfly@2.43.0/patternfly-base.css"/>
88
<title>Data driven forms</title>
99
</head>
1010
<body>

packages/pf4-component-mapper/src/form-fields/select/select-styles.scss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
.ddorg__pf4-component-mapper__select__indicators {
4444
padding-right: 6px;
4545
z-index: 1;
46+
>button.pf-c-button.pf-m-plain {
47+
display: flex;
48+
justify-content: center;
49+
}
4650
.ddorg__pf4-component-mapper__select__indicator-separator {
4751
display: none;
4852
}
@@ -53,13 +57,6 @@
5357
fill: var(--pf-global--Color--dark-100);
5458
}
5559
}
56-
button.pf-c-button.pf-m-plain {
57-
padding-right: 0.5rem;
58-
padding-left: 1rem;
59-
margin-left: auto;
60-
padding-bottom: 0;
61-
margin-right: 0.5rem;
62-
}
6360
}
6461
}
6562

0 commit comments

Comments
 (0)