Skip to content

Commit

Permalink
Theme bugfixes (#7186)
Browse files Browse the repository at this point in the history
* fix core bugs

* use proper pallettes
  • Loading branch information
DenysVuika committed Jul 23, 2021
1 parent 03caaaf commit 3c5da16
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
Expand Up @@ -5,7 +5,7 @@
$foreground: map-get($theme, foreground);

$breadcrumb-chevron-spacer: 2px;
$breadcrumb-outline: 1px solid mat-color($alfresco-ecm-blue, A200) !default;
$breadcrumb-outline: 1px solid mat-color($accent, A200) !default;

.adf-breadcrumb {
display: flex;
Expand Down
@@ -1,6 +1,8 @@
@mixin adf-card-view-textitem-theme($theme) {
$primary: map-get($theme, primary);
$accent: map-get($theme, accent);
$foreground: map-get($theme, foreground);
$outline: 1px solid mat-color($alfresco-ecm-blue, A200) !default;
$outline: 1px solid mat-color($accent, A200) !default;

.adf {
&-textitem-edit-icon.mat-icon {
Expand Down
7 changes: 4 additions & 3 deletions lib/core/datatable/components/datatable/datatable.theme.scss
Expand Up @@ -2,6 +2,7 @@
$foreground: map-get($theme, foreground);
$background: map-get($theme, background);
$primary: map-get($theme, primary);
$accent: map-get($theme, accent);

$data-table-font-size: 14px !default;
$data-table-header-font-size: 12px !default;
Expand All @@ -11,8 +12,8 @@
$data-table-header-sorted-icon-hover-color: mat-color($foreground, disabled-text) !default;
$data-table-cell-text-color: mat-color($foreground, text) !default;
$data-table-cell-link-color: mat-color($foreground, text) !default;
$data-table-cell-link-hover-color: mat-color($alfresco-ecm-blue, 500) !default;
$data-table-outline: 1px solid mat-color($alfresco-ecm-blue, A200) !default;
$data-table-cell-link-hover-color: mat-color($accent, 500) !default;
$data-table-outline: 1px solid mat-color($accent, A200) !default;
$data-table-divider-color: mat-color($foreground, text, 0.07) !default;
$data-table-hover-color: mat-color($background, 'hover') !default;
$data-table-selection-color: mat-color($background, 'selected-button') !default;
Expand All @@ -24,7 +25,7 @@
$data-table-column-padding: $data-table-column-spacing / 2;
$data-table-card-padding: 24px !default;
$data-table-cell-top: $data-table-card-padding / 2;
$data-table-drag-border: 1px dashed mat-color($alfresco-ecm-blue, A200);
$data-table-drag-border: 1px dashed mat-color($accent, A200);
$data-table-thumbnail-width: 50px !default;
$data-table-cell-min-width: 50px !default;
$data-table-cell-min-width--no-grow: 100px !default;
Expand Down
2 changes: 1 addition & 1 deletion lib/core/styles/_index.scss
Expand Up @@ -32,7 +32,7 @@
@import '../templates/empty-content/empty-content.theme';
@import '../templates/error-content/error-content.theme';
@import '../clipboard/clipboard.theme';
@import '../../core/search-text/search-text-input.theme';
@import '../search-text/search-text-input.theme';
@import './snackbar.theme';
@import '../directives/tooltip-card/tooltip-card.theme';
@import '../notifications/components/notification-history.theme';
Expand Down
3 changes: 2 additions & 1 deletion lib/core/viewer/components/img-viewer.theme.scss
@@ -1,6 +1,7 @@
@mixin adf-image-viewer-theme($theme) {
$accent: map-get($theme, accent);
$background: map-get($theme, background);
$viewer-image-outline: 1px solid mat-color($alfresco-ecm-blue, A200) !default;
$viewer-image-outline: 1px solid mat-color($accent, A200) !default;

.adf-image-viewer {
width: 100%;
Expand Down
3 changes: 2 additions & 1 deletion lib/core/viewer/components/pdf-viewer-thumbnails.theme.scss
@@ -1,4 +1,5 @@
@mixin adf-pdf-thumbnails-theme($theme) {
$accent: map-get($theme, accent);
$background: map-get($theme, background);

.adf-pdf-thumbnails {
Expand Down Expand Up @@ -28,7 +29,7 @@
}

&__thumb--selected {
border: 2px solid mat-color($alfresco-ecm-blue, A200);
border: 2px solid mat-color($accent, A200);
}
}
}

0 comments on commit 3c5da16

Please sign in to comment.