modal_button: Use negative outline-offset to compensate for scaling.

This commit is contained in:
Karl Stolley 2024-07-26 10:33:59 -05:00 committed by Tim Abbott
parent 6c500e9a6e
commit e11cfd7ba8
1 changed files with 6 additions and 0 deletions

View File

@ -142,6 +142,12 @@
.modal__btn:focus,
.modal__btn:hover {
transform: scale(1.05);
/* The extremely subtle 1.05 scale can cause
a gap to appear between the outline and
button background color; this negative
offset preserves the scale effect, but also
covers any tiny gaps owing to subtle scaling. */
outline-offset: -1px;
}
.dialog_exit_button {