From 03db52853ac1d521b0327923d7fd7acf294316ef Mon Sep 17 00:00:00 2001 From: River Lynn Parrhesia Bailey Date: Wed, 21 Sep 2022 10:52:09 -0500 Subject: [PATCH 1/3] deprecated Primer::IconButton in favor of Primer::Beta::IconButton --- app/components/primer/icon_button.rb | 2 +- docs/src/@primer/gatsby-theme-doctocat/nav.yml | 2 +- lib/primer/deprecations.rb | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/primer/icon_button.rb b/app/components/primer/icon_button.rb index 3951295b22..7cdead3137 100644 --- a/app/components/primer/icon_button.rb +++ b/app/components/primer/icon_button.rb @@ -12,7 +12,7 @@ module Primer # Either `aria-label` or `aria-description` will be used for the `Tooltip` text, depending on which one is present. # [Learn more about best functional image practices (WAI Images)](https://www.w3.org/WAI/tutorials/images/functional) class IconButton < Primer::Component - status :beta + status :deprecated DEFAULT_SCHEME = :default SCHEME_MAPPINGS = { diff --git a/docs/src/@primer/gatsby-theme-doctocat/nav.yml b/docs/src/@primer/gatsby-theme-doctocat/nav.yml index 60688affed..7dc0abf050 100644 --- a/docs/src/@primer/gatsby-theme-doctocat/nav.yml +++ b/docs/src/@primer/gatsby-theme-doctocat/nav.yml @@ -62,7 +62,7 @@ - title: HiddenTextExpander url: "/components/alpha/hiddentextexpander" - title: IconButton - url: "/components/iconbutton" + url: "/components/beta/iconbutton" - title: Image url: "/components/image" - title: ImageCrop diff --git a/lib/primer/deprecations.rb b/lib/primer/deprecations.rb index d1f92c8d3f..e069915b5c 100644 --- a/lib/primer/deprecations.rb +++ b/lib/primer/deprecations.rb @@ -17,6 +17,7 @@ module Deprecations "Primer::FlexItemComponent" => nil, "Primer::HeadingComponent" => "Primer::Beta::Heading", "Primer::HiddenTextExpander" => "Primer::Alpha::HiddenTextExpander", + "Primer::IconButton" => "Primer::Beta::IconButton", "Primer::Tooltip" => "Primer::Alpha::Tooltip" }.freeze From 7b3f2b3faefa350441d6bb343ad1c6950a493284 Mon Sep 17 00:00:00 2001 From: River Lynn Parrhesia Bailey Date: Wed, 21 Sep 2022 10:52:48 -0500 Subject: [PATCH 2/3] added changeset --- .changeset/olive-eggs-dream.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/olive-eggs-dream.md diff --git a/.changeset/olive-eggs-dream.md b/.changeset/olive-eggs-dream.md new file mode 100644 index 0000000000..e9530d3910 --- /dev/null +++ b/.changeset/olive-eggs-dream.md @@ -0,0 +1,5 @@ +--- +'@primer/view-components': patch +--- + +deprecated Primer::IconButton in favor of Primer::Beta::IconButton" From 8af5d586067452be1e3ab2241d0056c22915cdf8 Mon Sep 17 00:00:00 2001 From: Actions Auto Build Date: Wed, 21 Sep 2022 15:54:48 +0000 Subject: [PATCH 3/3] docs: build docs --- static/statuses.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/statuses.json b/static/statuses.json index 22bdeb1b1e..fa1903abb9 100644 --- a/static/statuses.json +++ b/static/statuses.json @@ -58,7 +58,7 @@ "Primer::HeadingComponent": "deprecated", "Primer::HellipButton": "alpha", "Primer::HiddenTextExpander": "deprecated", - "Primer::IconButton": "beta", + "Primer::IconButton": "deprecated", "Primer::Image": "alpha", "Primer::ImageCrop": "alpha", "Primer::LabelComponent": "beta",