1
1
mirror of https://github.com/primer/css.git synced 2024-12-25 07:03:35 +03:00

Merge pull request #1371 from primer/tobiasahlin/deprecate-bg-shade-gradient

Marketing: Deprecate bg-shade-gradient
This commit is contained in:
simurai 2021-04-28 20:20:48 +09:00 committed by GitHub
commit cad51980c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 6 deletions

View File

@ -0,0 +1,5 @@
---
"@primer/css": major
---
Marketing: Deprecate bg-shade-gradient

View File

@ -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".`

View File

@ -5,5 +5,4 @@
@import "./filters.scss";
@import "./layout.scss";
@import "./margin.scss";
@import "./misc.scss";
@import "./padding.scss";

View File

@ -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;
}