From b29731bb10dc2ee9450378ec42bf28e1b385a02a 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;