gornycreative Posted October 28, 2022 Posted October 28, 2022 I'm trying to override an element inline style definition that seems to possibly be part of core? It appears on a minimal install but I'm having a hard time isolating where it is getting injected in order to disable/override it: This admin theme settings fieldset has an inline definition: style="background-color: rgb(255, 255, 255);" It appears on the input tab on fields across the board.
gornycreative Posted October 28, 2022 Author Posted October 28, 2022 Looking into it further, I believe it is being caused by a jquery ready() function call in \wire\modules\AdminTheme\AdminThemeUikit\config-field.js: $(document).ready(function() { $('#_adminTheme').find('input[type=radio],input[type=checkbox]').change(function() { updateAdminThemeUikitExample(); }); $('#_adminTheme, #_adminTheme > *').css('background-color', '#fff'); // <--- This seems to be the culprit. updateAdminThemeUikitExample(); initAdminThemeUikitColumnWidth(); }); @ryan Is there a reason for this rule being set? Commenting out this line resolves the behavior. 1
flydev Posted November 6, 2022 Posted November 6, 2022 On my last post in the thread of AdminStyleDark, when I said: Quote There is also some hardcoded style set by js calls, I put already comments on a todo/known bugs section. I was refering to this one in particulary. I will send a github PR. 1
gornycreative Posted March 8, 2023 Author Posted March 8, 2023 Ryan recently fixed this issue. It now pulls the current background-color property instead of #fff
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now