From 4119d04fbadf60c18dd930214e20c2a3672e2a83 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Fri, 2 Oct 2026 09:15:05 +0200 Subject: [PATCH] Add border to and increase text-contrast on disabled button (#6622) * Add border to and increase text-contrast on disabled button * Do not add border to disabled btn-link * Add background to disabled button to further distinguish --- src/pretix/static/pretixbase/scss/_theme.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/pretix/static/pretixbase/scss/_theme.scss b/src/pretix/static/pretixbase/scss/_theme.scss index eb32d06ec..83a5c18f7 100644 --- a/src/pretix/static/pretixbase/scss/_theme.scss +++ b/src/pretix/static/pretixbase/scss/_theme.scss @@ -117,6 +117,16 @@ input[type=number]::-webkit-outer-spin-button { border: transparent; } +.btn.disabled, .btn[disabled], fieldset[disabled] .btn { + box-shadow: 0px 0px 0px 1px #ccc inset, inset 0 1px 3px 0 #d9d9d9; + background: #eee; + opacity: 0.7; +} +.btn-link.disabled, .btn-link[disabled], fieldset[disabled] .btn-link { + box-shadow: none; + background: none; +} + .btn-group-flex { display: flex; } .btn-group-flex > .btn { flex: 1; }