sforkowany z mirror/soapbox
Merge branch 'form-aesthetic-improvements' into 'develop'
Preferences Form aesthetic improvements See merge request soapbox-pub/soapbox-fe!270chats_paste
commit
532e37a347
|
@ -55,23 +55,27 @@ exports[`<RadioGroup /> renders correctly 1`] = `
|
|||
`;
|
||||
|
||||
exports[`<SelectDropdown /> renders correctly 1`] = `
|
||||
<select>
|
||||
<option
|
||||
value="one"
|
||||
>
|
||||
One
|
||||
</option>
|
||||
<option
|
||||
value="two"
|
||||
>
|
||||
Two
|
||||
</option>
|
||||
<option
|
||||
value="three"
|
||||
>
|
||||
Three
|
||||
</option>
|
||||
</select>
|
||||
<div
|
||||
class="select-wrapper"
|
||||
>
|
||||
<select>
|
||||
<option
|
||||
value="one"
|
||||
>
|
||||
One
|
||||
</option>
|
||||
<option
|
||||
value="two"
|
||||
>
|
||||
Two
|
||||
</option>
|
||||
<option
|
||||
value="three"
|
||||
>
|
||||
Three
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`<SimpleForm /> renders correctly 1`] = `
|
||||
|
|
|
@ -236,7 +236,7 @@ export class SelectDropdown extends ImmutablePureComponent {
|
|||
<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 ? (
|
||||
<LabelInputContainer label={label} hint={hint}>{selectElem}</LabelInputContainer>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
.dyslexic {
|
||||
font-family: 'OpenDyslexic' !important;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
body.dyslexic {
|
||||
|
|
|
@ -13,7 +13,7 @@ code {
|
|||
|
||||
.simple_form {
|
||||
.input {
|
||||
margin-bottom: 15px;
|
||||
margin-bottom: 8px;
|
||||
overflow: hidden;
|
||||
|
||||
&.hidden {
|
||||
|
@ -43,7 +43,6 @@ code {
|
|||
|
||||
&.boolean {
|
||||
position: relative;
|
||||
margin-bottom: 0;
|
||||
|
||||
.label_input > label {
|
||||
font-family: inherit;
|
||||
|
@ -111,7 +110,6 @@ code {
|
|||
span.hint {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
p.hint {
|
||||
|
@ -172,15 +170,10 @@ code {
|
|||
font-size: 14px;
|
||||
color: var(--primary-text-color);
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
word-wrap: break-word;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.hint {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
ul {
|
||||
flex: 390px;
|
||||
}
|
||||
|
@ -436,6 +429,7 @@ code {
|
|||
}
|
||||
|
||||
select {
|
||||
appearance: none;
|
||||
box-sizing: border-box;
|
||||
font-size: 16px;
|
||||
color: var(--primary-text-color);
|
||||
|
@ -451,6 +445,23 @@ code {
|
|||
padding-right: 30px;
|
||||
height: 41px;
|
||||
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 {
|
||||
|
|
Ładowanie…
Reference in New Issue