Skip to content

Commit ced845e

Browse files
Merge pull request #264 from JLG-WOCFR-DEV/codex/add-focus-visible-rule-for-modal-close-button
Enhance modal close button accessibility
2 parents acf3796 + 24ac372 commit ced845e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

liens-morts-detector-jlg/assets/css/blc-admin-styles.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,10 +543,17 @@
543543
color: #1d2327;
544544
font-size: 24px;
545545
cursor: pointer;
546+
transition: color 0.2s ease, opacity 0.2s ease;
547+
}
548+
549+
.blc-modal__close:focus-visible {
550+
outline: 2px solid #2271b1;
551+
outline-offset: 2px;
546552
}
547553

548554
.blc-modal__close:disabled {
549555
cursor: not-allowed;
556+
color: #6c7781;
550557
opacity: 0.6;
551558
}
552559

@@ -592,3 +599,13 @@ body.blc-modal-open {
592599
right: 14px;
593600
}
594601
}
602+
603+
@media (prefers-color-scheme: dark) {
604+
.blc-modal__close {
605+
color: #f0f6fc;
606+
}
607+
608+
.blc-modal__close:disabled {
609+
color: rgba(240, 246, 252, 0.65);
610+
}
611+
}

0 commit comments

Comments
 (0)