QuizandSurveyMaster / quiz_master_next

Quiz And Survey Master - A WordPress Plugin For Creating Quizzes, tests, exams and surveys
https://quizandsurveymaster.com
GNU General Public License v2.0
94 stars 86 forks source link

Plugin CSS affecting unrelated parts of admin section #2659

Open siliconforks opened 2 weeks ago

siliconforks commented 2 weeks ago

Site Info

WordPress Version: 6.6.2 QSM Version: 9.1.3 Browser: Any

General description

The plugin's CSS is affecting the layout of unrelated parts of the admin section.

For example, go to Settings → General and look at the "Date Format" and "Time Format" sections.

Expected behavior

Without the plugin installed, it looks like this:

without-plugin

Actual behavior

With the plugin, it looks like this:

with-plugin

Note that the "Custom:" option has been split into two lines. This is because the file css/qsm-admin.css is loaded on all pages in the admin section, and it has this code:

https://github.com/QuizandSurveyMaster/quiz_master_next/blob/0c26ba8c9737a5cea0f090658b9c9dd75c8849e3/css/qsm-admin.css#L1381-L1384

Steps to reproduce the behavior

Just log in to the admin section and go to Settings → General. (Similar effects can be seen on other admin pages, too.)