FIX: Adjust placement and animation of labels for custom user fields (#24201)
This commit is contained in:
parent
5c92d7da22
commit
88bb5fa773
|
@ -1,4 +1,7 @@
|
||||||
<label class="control-label" for={{concat "user-" this.elementId}}>
|
<label
|
||||||
|
class="control-label alt-placeholder"
|
||||||
|
for={{concat "user-" this.elementId}}
|
||||||
|
>
|
||||||
{{this.field.name}}
|
{{this.field.name}}
|
||||||
{{#if this.field.required}}
|
{{#if this.field.required}}
|
||||||
<span class="required">*</span>
|
<span class="required">*</span>
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<label class="control-label" for={{concat "user-" this.elementId}}>
|
<label
|
||||||
|
class="control-label alt-placeholder"
|
||||||
|
for={{concat "user-" this.elementId}}
|
||||||
|
>
|
||||||
{{this.field.name}}
|
{{this.field.name}}
|
||||||
{{#if this.field.required}}
|
{{#if this.field.required}}
|
||||||
<span class="required">*</span>
|
<span class="required">*</span>
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<label class="control-label" for={{concat "user-" this.elementId}}>
|
|
||||||
{{this.field.name}}
|
|
||||||
{{#if this.field.required}}<span class="required">*</span>{{/if}}
|
|
||||||
</label>
|
|
||||||
<Input
|
<Input
|
||||||
id={{concat "user-" this.elementId}}
|
id={{concat "user-" this.elementId}}
|
||||||
@value={{this.value}}
|
@value={{this.value}}
|
||||||
maxlength={{this.site.user_field_max_length}}
|
maxlength={{this.site.user_field_max_length}}
|
||||||
/>
|
/>
|
||||||
|
<label
|
||||||
|
class="control-label alt-placeholder"
|
||||||
|
for={{concat "user-" this.elementId}}
|
||||||
|
>
|
||||||
|
{{this.field.name}}
|
||||||
|
{{#if this.field.required}}<span class="required">*</span>{{/if}}
|
||||||
|
</label>
|
||||||
<InputTip
|
<InputTip
|
||||||
@validation={{this.validation}}
|
@validation={{this.validation}}
|
||||||
class={{unless this.validation " hidden"}}
|
class={{unless this.validation " hidden"}}
|
||||||
|
|
|
@ -177,7 +177,6 @@ body.invite-page {
|
||||||
top: -8px;
|
top: -8px;
|
||||||
left: calc(1em - 0.25em);
|
left: calc(1em - 0.25em);
|
||||||
background-color: var(--secondary);
|
background-color: var(--secondary);
|
||||||
padding: 0 0.25em 0 0.25em;
|
|
||||||
font-size: $font-down-1;
|
font-size: $font-down-1;
|
||||||
}
|
}
|
||||||
.user-field.text:focus-within,
|
.user-field.text:focus-within,
|
||||||
|
|
|
@ -972,3 +972,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Due to special login animations, the order here needs to be changed
|
||||||
|
.control-group[data-setting-name="user-user-fields"]
|
||||||
|
.user-field.text
|
||||||
|
.controls {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
.control-label.alt-placeholder {
|
||||||
|
order: 1;
|
||||||
|
}
|
||||||
|
.ember-text-field {
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
|
.tip {
|
||||||
|
order: 3;
|
||||||
|
}
|
||||||
|
.instructions {
|
||||||
|
order: 4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -311,6 +311,7 @@
|
||||||
input.value-entered + label.alt-placeholder {
|
input.value-entered + label.alt-placeholder {
|
||||||
top: -8px;
|
top: -8px;
|
||||||
left: calc(3em - 0.25em);
|
left: calc(3em - 0.25em);
|
||||||
|
font-size: var(--font-down-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.password-confirmation {
|
.password-confirmation {
|
||||||
|
|
Loading…
Reference in New Issue