Jump to content

Strange admin theme settings inline style definition


gornycreative
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 2 weeks later...
  • 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
 Share

  • Recently Browsing   0 members

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