Minor css variables fixes for header & navbar#2441
Conversation
|
Thanks @alexandrevryghem. You are on a roll with the Angular fixes. I use a custom theme based on the Before this PR: After this PR: It's a minor issue, but I can't override the dropdown menu background without theming the diff --git a/src/app/navbar/expandable-navbar-section/expandable-navbar-section.component.scss b/src/app/navbar/expandable-navbar-section/expandable-navbar-section.component.scss
index 65de77b60..1bc80d32c 100644
--- a/src/app/navbar/expandable-navbar-section/expandable-navbar-section.component.scss
+++ b/src/app/navbar/expandable-navbar-section/expandable-navbar-section.component.scss
@@ -6,6 +6,7 @@
}
.dropdown-menu {
+ background-color: var(--ds-navbar-bg);
overflow: hidden;
min-width: 100%;
border-top-left-radius: 0;So I'm not sure about this PR. I don't see the benefit in my case! 😛 |
|
@alanorth This is weird, because the expandable navbar section uses the same color as the navbar links, so they should both use |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @alexandrevryghem ! Tested this and verified that header/navbar styles can now be modified via variables using either the dspace theme or custom theme. Default styling remains the same as well.
|
Successfully created backport PR for |
[DSC-1993] fix of red border in inline-group Approved-by: Andrea Barbasso


Description
When you create a custom theme who doesn't extend the
dspacetheme, you can't change the background color of the header. It is also not possible to change the navbar background color using CSS variables.Instructions for Reviewers
List of changes in this PR:
HeaderComponentinsrc/appnow also sets thebackground-color: var(--ds-header-bg)--ds-navbar-bg(this is maybe not useful if you use the navbar in the same way as thedspacetheme. But for custom themes who use theHeaderComponent&NavbarComponentfromsrc/appthis is useful, because the the navbar is rendered underneath the header)NavbarComponentincorrectly dividing the css variable--ds-content-spacingby 3Include guidance for how to test or review your PR.
themesconfig in yourconfig.ymlfile entirely and don't provide any themes:--ds-header-bg&--ds-navbar-bginsrc/styles/_custom_variables.scssand check that they are correct in the UIconfig.ymlfile to use thedspacetheme:--ds-header-bg&--ds-navbar-bginsrc/themes/dspace/styles/_theme_css_variable_overrides.scssand check that they are correct in the UIChecklist
yarn lintyarn check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.