Skip to content

Commit

Permalink
Deprecating the alpha autocomplete component (#1241)
Browse files Browse the repository at this point in the history
* Deprecating the alpha autocomplete component

* Create odd-cooks-invite.md

* Update odd-cooks-invite.md

* docs: build docs

* Setting deprecated

Co-authored-by: Actions Auto Build <[email protected]>
  • Loading branch information
jonrohan and actions-user authored Aug 1, 2022
1 parent b761b96 commit 918cfe3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-cooks-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/view-components": patch
---

Deprecating the `Primer::Alpha::Autocomplete` component
2 changes: 1 addition & 1 deletion app/components/primer/alpha/auto_complete.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Alpha
# However, please note that a visible label should almost always
# be used unless there is compelling reason not to. A placeholder is not a label.
class AutoComplete < Primer::Component
status :alpha
status :deprecated

# Customizable results list.
#
Expand Down
2 changes: 1 addition & 1 deletion app/components/primer/alpha/auto_complete/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Alpha
class AutoComplete
# Use `AutoCompleteItem` to list results of an auto-completed search.
class Item < Primer::Component
status :alpha
status :deprecated

# @example Default
# <%= render(Primer::Alpha::AutoComplete.new(label_text: "Fruits", src: "/auto_complete", input_id: "fruits-input--custom-results", list_id: "fruits-popup--custom-results")) do |c| %>
Expand Down
4 changes: 2 additions & 2 deletions static/statuses.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Primer::Alpha::AutoComplete": "alpha",
"Primer::Alpha::AutoComplete::Item": "alpha",
"Primer::Alpha::AutoComplete": "deprecated",
"Primer::Alpha::AutoComplete::Item": "deprecated",
"Primer::Alpha::BorderBox::Header": "alpha",
"Primer::Alpha::ButtonMarketing": "alpha",
"Primer::Alpha::Layout": "alpha",
Expand Down

0 comments on commit 918cfe3

Please sign in to comment.