Fix toggle label clicks, notification positioning, and AJAX nonce issues

This commit is contained in:
Marcus Quinn
2025-03-16 03:40:25 +00:00
parent f35e6639c8
commit 4afe97ba3d
2 changed files with 32 additions and 3 deletions

View File

@ -620,12 +620,32 @@ input:checked + .wp-toggle-slider:before {
font-size: 12px;
font-weight: 500;
animation: fadeIn 0.3s ease-in-out;
height: 20px;
box-sizing: border-box;
position: relative;
}
.wp-setting-notification.error {
background: #d63638;
}
/* Add space for notification to prevent layout shifts */
.wp-setting-left label,
.wp-allstars-toggle-left label,
.wp-allstars-setting-row label {
position: relative;
padding-right: 80px;
}
.wp-setting-left label .wp-setting-notification,
.wp-allstars-toggle-left label .wp-setting-notification,
.wp-allstars-setting-row label .wp-setting-notification {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }