From 08be6ed23bdeaae4a3f356ef02a5dd791ca3fcee Mon Sep 17 00:00:00 2001 From: Jacques Erasmus Date: Thu, 27 Jun 2019 07:03:37 +0000 Subject: Update action selector Updated the toast action selector to `first-of-type` instead --- app/assets/stylesheets/components/toast.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/components/toast.scss b/app/assets/stylesheets/components/toast.scss index 33e1c4e5349..acbd909d595 100644 --- a/app/assets/stylesheets/components/toast.scss +++ b/app/assets/stylesheets/components/toast.scss @@ -21,7 +21,7 @@ background-color: rgba($gray-900, $toast-background-opacity); @include media-breakpoint-down(xs) { - .action:first-child { + .action:first-of-type { // Ensures actions buttons are right aligned on mobile margin-left: auto; } @@ -33,7 +33,7 @@ text-transform: none; font-size: $gl-font-size; - &:first-child { + &:first-of-type { padding-right: 0; } } -- cgit v1.2.1