From 1fef65910ea85281d32891df70608c811f9f7b4c Mon Sep 17 00:00:00 2001 From: Tobias Ahlin <211284+tobiasahlin@users.noreply.github.com> Date: Wed, 28 Apr 2021 10:17:20 +0200 Subject: [PATCH 1/2] Deprecate bg-shade-gradient --- deprecations.js | 4 ++++ src/marketing/utilities/index.scss | 1 - src/marketing/utilities/misc.scss | 5 ----- 3 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 src/marketing/utilities/misc.scss diff --git a/deprecations.js b/deprecations.js index a6f812fd..28596056 100644 --- a/deprecations.js +++ b/deprecations.js @@ -5,6 +5,10 @@ */ const versionDeprecations = { '17.0.0': [ + { + selectors: ['.bg-shade-gradient'], + message: `This selector is deprecated, please use "color-bg-secondary" instead of "bg-shade-gradient".` + }, { selectors: ['.btn-large-mktg'], message: `Please use the ".btn-lg-mktg" class instead of "btn-large-mktg".` diff --git a/src/marketing/utilities/index.scss b/src/marketing/utilities/index.scss index 135c0a79..80bb1bb6 100644 --- a/src/marketing/utilities/index.scss +++ b/src/marketing/utilities/index.scss @@ -5,5 +5,4 @@ @import "./filters.scss"; @import "./layout.scss"; @import "./margin.scss"; -@import "./misc.scss"; @import "./padding.scss"; diff --git a/src/marketing/utilities/misc.scss b/src/marketing/utilities/misc.scss deleted file mode 100644 index 88c013df..00000000 --- a/src/marketing/utilities/misc.scss +++ /dev/null @@ -1,5 +0,0 @@ -.bg-shade-gradient { - background-image: linear-gradient(180deg, var(--color-mktg-bg-shade-gradient-top), var(--color-mktg-bg-shade-gradient-bottom)) !important; - background-repeat: no-repeat !important; - background-size: 100% 200px !important; -} From 0c6bfc22b523545120bea39dc201760d8a9e8b01 Mon Sep 17 00:00:00 2001 From: simurai Date: Wed, 28 Apr 2021 17:59:17 +0900 Subject: [PATCH 2/2] Create modern-zebras-press.md --- .changeset/modern-zebras-press.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/modern-zebras-press.md diff --git a/.changeset/modern-zebras-press.md b/.changeset/modern-zebras-press.md new file mode 100644 index 00000000..cddebe44 --- /dev/null +++ b/.changeset/modern-zebras-press.md @@ -0,0 +1,5 @@ +--- +"@primer/css": major +--- + +Marketing: Deprecate bg-shade-gradient