Make all non-admin page-level components themeable#1042
Make all non-admin page-level components themeable#1042tdonohue merged 12 commits intoDSpace:mainfrom
Conversation
|
This pull request introduces 4 alerts when merging ea2fae3 into e4454de - view on LGTM.com new alerts:
|
tdonohue
left a comment
There was a problem hiding this comment.
@artlowel : I reviewed & tested this PR as well. It looks good & seems to work overall (no obvious issues).
However, I did want to note that even with this PR applied, I'm still seeing the same oddity on my end where the _theme_sass_variable_overrides.scss file in the custom theme doesn't appear to work. I attempted the same process that I described in your other PR & got the same results. I also tried a second browser (Firefox) just in case but saw the same results...no changes to the theme. I'm stumped as to why this doesn't work for me, but works fine on your end...but if you have any ideas on how to debug it let me know.
My environment: Windows 10, Node v14.6.0, Yarn v1.22.4
I'm not seeing any errors appear in the build process, or in Chrome DevTools when I test it. All other theme files I've tried work fine (e.g. changing CSS in _theme_css_variable_overrides.scss works perfectly), so this seems strangely specific to _theme_sass_variable_overrides.scss.
Overall, I'm +1 this PR. Just wanted to note the strange issue still exists.
|
@tdonohue could you try the exact commit I linked last time to see if that works for you? atmire@d212f75. Also please check the network tab in your dev tools to see that custom-theme.css is indeed being downloaded. |
d705572 to
0a600dd
Compare
|
This pull request introduces 4 alerts when merging 0a600dd into 1115c58 - view on LGTM.com new alerts:
|
4a98929 to
c19ee0d
Compare
tdonohue
left a comment
There was a problem hiding this comment.
👍 Officially approving this, as the code all looks good to me. As stated previously, the only issue I had seen is in getting the _theme_sass_variable_overrides.scss file to work as expected....but I'm still debugging what's going on there, and it can be handled in a later PR if any fix is necessary.
Thanks @artlowel !
atarix83
left a comment
There was a problem hiding this comment.
thanks @artlowel for this PR
the code looks good to me (only one inline comment). I've tried to overwrite some components and it works.
I can also confirm that changing the _theme_sass_variable_overrides.scss file works for me as expected
|
Merging, as this is at +2. Thanks @artlowel ! |
References
Description
This PR makes all page-level components (i.e. components that have a URL) themeable, except the ones that are only accessible to admins.
It also adds a template themed version of each of these components to the custom theme.
Instructions for Reviewers
You can test this PR by enabling the custom them, adding your own style and/or html for the new themeable components, and verifying that your changes show up.
This PR seems bigger than it is, because it depends on #1035 You can see only the changes in this PR hereChecklist
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.