Skip to content

Commit

Permalink
fix: modal border
Browse files Browse the repository at this point in the history
see the issue for details

fixes issue #1096
  • Loading branch information
DanielPalafox committed Sep 15, 2021
1 parent a1dd349 commit ac357af
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/cdk/modal/modal/modal.component.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
:host {
margin: -24px;
display: flex;
border: 2px solid;

.content-wrapper {
max-height: 100%;
Expand Down
16 changes: 16 additions & 0 deletions src/app/cdk/modal/modal/modal.component.scss-theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@import '~@angular/material/theming';
@import 'src/assets/scss/material.orcid-theme.scss';

@mixin modal-footer-theme($theme) {
$primary: map-get($theme, primary);
$accent: map-get($theme, accent);
$warn: map-get($theme, accent);
$foreground: map-get($theme, foreground);
$background: map-get($theme, background);

:host {
border-color: mat-color($background, ui-background-darkest) !important;
}
}

@include modal-footer-theme($orcid-app-theme);

0 comments on commit ac357af

Please sign in to comment.