(fix) select style

This commit is contained in:
Gabriel Rodriguez Alsina 2019-01-03 16:11:09 -03:00
parent e8b7a066bb
commit 8d7f576edd
4 changed files with 22 additions and 12 deletions

View File

@ -5,7 +5,7 @@
line-height: 1.38;
margin: 0;
padding-top: 12px;
word-break: break-word;
word-break: break-all;
&#{ & }-core {
a {

View File

@ -1,10 +1,12 @@
.frm-FormSelect {
@include form-element-base-style();
@include image-2x('#{ $base-images-path }/Base/select@2x.png', 8px, 4px);
appearance: none;
background-image: url('#{ $base-images-path }/Base/select.png');
background-position: right 13px center;
background-repeat: no-repeat;
height: $input-height;
padding-right: 30px;
.frm-FormSelect_Select {
select {
@include form-element-base-style();
@include image-2x('#{ $base-images-path }/Base/select@2x.png', 8px, 4px);
appearance: none;
background-image: url('#{ $base-images-path }/Base/select.png');
background-position: right 13px center;
background-repeat: no-repeat;
height: $input-height;
padding-right: 30px;
}
}

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,15 @@ export const FormSelect = ({
<label className="frm-FormSelect_Title" htmlFor={id}>
{title}
</label>
<Select.Creatable name={name} id={id} value={value} onChange={onChange} options={options} disabled={disabled} />
<Select.Creatable
className="frm-FormSelect_Select"
name={name}
id={id}
value={value}
onChange={onChange}
options={options}
disabled={disabled}
/>
{hint ? <FormHint text={hint} networkBranch={networkBranch} /> : null}
</div>
)