[ADF-1902] Buttons of the Create / Edit folder dialog do not match design (#2634)

This commit is contained in:
suzanadirla 2017-11-13 12:47:24 +02:00 committed by Eugenio Romano
parent efac6eeafe
commit 5d480ba366
3 changed files with 17 additions and 2 deletions

View File

@ -41,7 +41,7 @@
</form> </form>
</mat-dialog-content> </mat-dialog-content>
<mat-dialog-actions> <mat-dialog-actions class="adf-dialog-buttons">
<span class="adf-fill-remaining-space"></span> <span class="adf-fill-remaining-space"></span>
<button <button
@ -50,7 +50,7 @@
{{ 'CORE.FOLDER_DIALOG.CANCEL_BUTTON.LABEL' | translate }} {{ 'CORE.FOLDER_DIALOG.CANCEL_BUTTON.LABEL' | translate }}
</button> </button>
<button <button class="adf-dialog-action-button"
mat-button mat-button
(click)="submit()" (click)="submit()"
[disabled]="!form.valid"> [disabled]="!form.valid">

View File

@ -5,3 +5,16 @@
.adf-full-width { .adf-full-width {
width: 100%; width: 100%;
} }
@mixin adf-dialog-theme($theme) {
$primary: map-get($theme, primary);
.adf-dialog-buttons button {
text-transform: uppercase;
}
.adf-dialog-action-button:enabled {
color: mat-color($primary);
}
}

View File

@ -8,6 +8,7 @@
@import '../src/components/pagination/pagination.component'; @import '../src/components/pagination/pagination.component';
@import '../src/components/info-drawer/info-drawer-layout.component'; @import '../src/components/info-drawer/info-drawer-layout.component';
@import '../src/components/settings/host-settings.component'; @import '../src/components/settings/host-settings.component';
@import '../src/dialogs/folder.dialog';
@mixin alfresco-core-theme($theme) { @mixin alfresco-core-theme($theme) {
@include adf-host-settings-theme($theme); @include adf-host-settings-theme($theme);
@ -20,4 +21,5 @@
@include adf-pagination-theme($theme); @include adf-pagination-theme($theme);
@include adf-colors-theme($theme); @include adf-colors-theme($theme);
@include adf-default-class($theme); @include adf-default-class($theme);
@include adf-dialog-theme($theme);
} }