Jump to content

Recommended Posts

Posted

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:

image.thumb.png.e5f099107397247e91e9d01625d62b88.png

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.

Posted

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.

  • Like 1
  • 2 weeks later...
Posted

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.

  • Thanks 1
  • 4 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...