From a74d300b68ca992aece2763556de87bd65e0ba73 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Thu, 28 Mar 2019 20:30:30 +0100 Subject: [PATCH] Fix background color transition in destructive buttons --- .../flavours/glitch/styles/components/index.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/javascript/flavours/glitch/styles/components/index.scss b/app/javascript/flavours/glitch/styles/components/index.scss index 21b76e33ab..b098676b02 100644 --- a/app/javascript/flavours/glitch/styles/components/index.scss +++ b/app/javascript/flavours/glitch/styles/components/index.scss @@ -35,6 +35,17 @@ transition: all 200ms ease-out; } + &--destructive { + transition: none; + + &:active, + &:focus, + &:hover { + background-color: $error-red; + transition: none; + } + } + &:disabled { background-color: $ui-primary-color; cursor: default;