Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Karl Stolleye11cfd7ba895
diff --git a/web/styles/modal.css b/web/styles/modal.css
index 63f3588df97..65626713d8c 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -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 {