From 6466a0461a8a2ee278497b78f2ed42d63fffe4de Mon Sep 17 00:00:00 2001 From: Martijn Cuppens Date: Thu, 24 Jan 2019 21:51:36 +0100 Subject: [PATCH] Deprecate float mixins (#28104) --- scss/mixins/_float.scss | 3 +++ scss/utilities/_float.scss | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/scss/mixins/_float.scss b/scss/mixins/_float.scss index 48fa8b6d59..adff88e790 100644 --- a/scss/mixins/_float.scss +++ b/scss/mixins/_float.scss @@ -2,10 +2,13 @@ @mixin float-left { float: left !important; + @include deprecate("The `float-left` mixin", "v4.3.0", "v5"); } @mixin float-right { float: right !important; + @include deprecate("The `float-right` mixin", "v4.3.0", "v5"); } @mixin float-none { float: none !important; + @include deprecate("The `float-none` mixin", "v4.3.0", "v5"); } diff --git a/scss/utilities/_float.scss b/scss/utilities/_float.scss index 01655e9a52..54250844ff 100644 --- a/scss/utilities/_float.scss +++ b/scss/utilities/_float.scss @@ -1,9 +1,11 @@ +// stylelint-disable declaration-no-important + @each $breakpoint in map-keys($grid-breakpoints) { @include media-breakpoint-up($breakpoint) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); - .float#{$infix}-left { @include float-left; } - .float#{$infix}-right { @include float-right; } - .float#{$infix}-none { @include float-none; } + .float#{$infix}-left { float: left !important; } + .float#{$infix}-right { float: right !important; } + .float#{$infix}-none { float: none !important; } } }