mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
AAE-36368 Fixing labels and form-fields on content-ee and apa (#10982)
* AAE-36368 fixing labels and form-fields on content-ee and apa * AAE-36368 removing padding for ACA * AAE-36368 fixing the PR for ACA issues * AAE-36368 resolving PR comments removing adf-form-field-input class
This commit is contained in:
committed by
GitHub
parent
1dd7d29bf2
commit
f1bdbf63b0
@@ -46,7 +46,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div *ngSwitchCase="'autocompleteBased'">
|
<div *ngSwitchCase="'autocompleteBased'">
|
||||||
<mat-form-field
|
<mat-form-field
|
||||||
class="adf-property-field adf-card-selectitem-autocomplete"
|
class="adf-property-field adf-card-selectitem-autocomplete "
|
||||||
[ngClass]="{ 'adf-property-read-only': !isEditable }"
|
[ngClass]="{ 'adf-property-read-only': !isEditable }"
|
||||||
[floatLabel]="property.default ? 'always' : null"
|
[floatLabel]="property.default ? 'always' : null"
|
||||||
>
|
>
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.adf-property-value-editable.adf-property-value-editable {
|
.adf-property-value-editable {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
|
|
||||||
#{ms.$mat-text-field-no-label} #{ms.$mat-form-field-infix} {
|
#{ms.$mat-text-field-no-label} #{ms.$mat-form-field-infix} {
|
||||||
@@ -55,7 +55,6 @@
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
padding: 6px 0;
|
padding: 6px 0;
|
||||||
border-bottom: 1px solid var(--adf-metadata-property-panel-border-color);
|
border-bottom: 1px solid var(--adf-metadata-property-panel-border-color);
|
||||||
color: var(--adf-metadata-property-panel-title-color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#{ms.$mat-line-ripple} {
|
#{ms.$mat-line-ripple} {
|
||||||
@@ -72,4 +71,9 @@
|
|||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#{ms.$mat-form-field-infix} {
|
||||||
|
padding-left: 3%;
|
||||||
|
padding-right: 3%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,8 @@
|
|||||||
[ngClass]="{
|
[ngClass]="{
|
||||||
'adf-property-value-editable': editable,
|
'adf-property-value-editable': editable,
|
||||||
'adf-property-readonly-value': isReadonlyProperty,
|
'adf-property-readonly-value': isReadonlyProperty,
|
||||||
'adf-property-value-has-error': isEditable && hasErrors
|
'adf-property-value-has-error': isEditable && hasErrors,
|
||||||
|
'adf-property-value-not-editable': !editable
|
||||||
}"
|
}"
|
||||||
title="{{ property.label | translate }}"
|
title="{{ property.label | translate }}"
|
||||||
[placeholder]="property.default"
|
[placeholder]="property.default"
|
||||||
@@ -110,7 +111,7 @@
|
|||||||
(keyup.enter)="clicked()"
|
(keyup.enter)="clicked()"
|
||||||
(click)="clicked()"
|
(click)="clicked()"
|
||||||
>
|
>
|
||||||
<mat-form-field class="adf-property-field adf-card-textitem-field" [floatLabel]="property.default ? 'always' : null">
|
<mat-form-field class="adf-property-field adf-card-textitem-field " [floatLabel]="property.default ? 'always' : null">
|
||||||
<mat-label
|
<mat-label
|
||||||
*ngIf="showProperty || isEditable"
|
*ngIf="showProperty || isEditable"
|
||||||
[attr.data-automation-id]="'card-textitem-label-' + property.key"
|
[attr.data-automation-id]="'card-textitem-label-' + property.key"
|
||||||
|
@@ -71,11 +71,8 @@
|
|||||||
border-bottom: 1px solid var(--adf-metadata-property-panel-border-color);
|
border-bottom: 1px solid var(--adf-metadata-property-panel-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.adf-property-readonly-value:disabled {
|
.adf-property-value-not-editable {
|
||||||
color: var(--adf-metadata-property-panel-title-color);
|
/* stylelint-disable-next-line declaration-no-important */
|
||||||
}
|
|
||||||
|
|
||||||
.adf-property-value-editable:not(:disabled) {
|
|
||||||
color: var(--adf-metadata-property-panel-title-color);
|
color: var(--adf-metadata-property-panel-title-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -9,6 +9,10 @@
|
|||||||
color: var(--adf-metadata-property-panel-text-color);
|
color: var(--adf-metadata-property-panel-text-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
|
||||||
|
&.adf-property-readonly-value {
|
||||||
|
color: var(--adf-metadata-property-panel-label-color);
|
||||||
|
}
|
||||||
|
|
||||||
&.adf-property-value-editable {
|
&.adf-property-value-editable {
|
||||||
color: var(--adf-metadata-property-panel-title-color);
|
color: var(--adf-metadata-property-panel-title-color);
|
||||||
@@ -29,8 +33,6 @@
|
|||||||
|
|
||||||
#{ms.$mat-input-element} {
|
#{ms.$mat-input-element} {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
color: var(--adf-metadata-property-panel-title-color);
|
|
||||||
padding: 6px 0;
|
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
|
||||||
&.adf-property-value-editable {
|
&.adf-property-value-editable {
|
||||||
@@ -85,10 +87,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.adf-property-value {
|
.adf-property-value {
|
||||||
color: var(--adf-metadata-property-panel-title-color);
|
|
||||||
|
|
||||||
&.adf-property-value-editable {
|
&.adf-property-value-editable {
|
||||||
color: var(--adf-metadata-property-panel-title-color);
|
|
||||||
background-color: var(--adf-metadata-buttons-background-color);
|
background-color: var(--adf-metadata-buttons-background-color);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
Reference in New Issue
Block a user