sforkowany z mirror/soapbox
fix language picker dropdown arrow
rodzic
5b6833060e
commit
061a820ce5
|
@ -55,7 +55,10 @@ exports[`<RadioGroup /> renders correctly 1`] = `
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`<SelectDropdown /> renders correctly 1`] = `
|
exports[`<SelectDropdown /> renders correctly 1`] = `
|
||||||
<select>
|
<div
|
||||||
|
class="select-wrapper"
|
||||||
|
>
|
||||||
|
<select>
|
||||||
<option
|
<option
|
||||||
value="one"
|
value="one"
|
||||||
>
|
>
|
||||||
|
@ -71,7 +74,8 @@ exports[`<SelectDropdown /> renders correctly 1`] = `
|
||||||
>
|
>
|
||||||
Three
|
Three
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`<SimpleForm /> renders correctly 1`] = `
|
exports[`<SimpleForm /> renders correctly 1`] = `
|
||||||
|
|
|
@ -236,7 +236,7 @@ export class SelectDropdown extends ImmutablePureComponent {
|
||||||
<option key={item} value={item}>{items[item]}</option>
|
<option key={item} value={item}>{items[item]}</option>
|
||||||
));
|
));
|
||||||
|
|
||||||
const selectElem = <select {...props}>{optionElems}</select>;
|
const selectElem = <div class='select-wrapper'><select {...props}>{optionElems}</select></div>;
|
||||||
|
|
||||||
return label ? (
|
return label ? (
|
||||||
<LabelInputContainer label={label} hint={hint}>{selectElem}</LabelInputContainer>
|
<LabelInputContainer label={label} hint={hint}>{selectElem}</LabelInputContainer>
|
||||||
|
|
|
@ -429,6 +429,7 @@ code {
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
appearance: none;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
|
@ -444,6 +445,23 @@ code {
|
||||||
padding-right: 30px;
|
padding-right: 30px;
|
||||||
height: 41px;
|
height: 41px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin-top: 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select-wrapper::after {
|
||||||
|
display: block;
|
||||||
|
font-family: 'ForkAwesome';
|
||||||
|
content: '';
|
||||||
|
width: 10px;
|
||||||
|
position: absolute;
|
||||||
|
right: 12px;
|
||||||
|
top: 1px;
|
||||||
|
border-left: 1px solid var(--highlight-text-color);
|
||||||
|
height: 39px;
|
||||||
|
padding: 12px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label_input {
|
.label_input {
|
||||||
|
|
Ładowanie…
Reference in New Issue