From eb8f1e6ca762ae15c59a34d843dd8a0cfc3c7bb5 Mon Sep 17 00:00:00 2001 From: Richard Garbutt Date: Thu, 13 Jul 2023 15:58:06 +0100 Subject: [PATCH 1/3] Update index.md documentation with correct install path (#2143) --- docs/content/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/index.md b/docs/content/index.md index 69dc8046fb..a992af5675 100644 --- a/docs/content/index.md +++ b/docs/content/index.md @@ -40,7 +40,7 @@ Optionally, to add the JavaScript behaviours, in your `application.html.erb` in Or alternatively, you can install the `@primer/view-components` npm package and in your JavaScript code add: ```js -import '@primer/view-components' +import '@primer/view-components/app/assets/javascripts/primer_view_components.js' ``` You can also import only the components you need: From 8f3ca7e4adce34c053428a6343a53ceb17e4d628 Mon Sep 17 00:00:00 2001 From: Cameron Dutro Date: Thu, 13 Jul 2023 10:01:32 -0700 Subject: [PATCH 2/3] Mark NavList and ActionList as a11y audited (#2142) --- app/components/primer/alpha/action_list.rb | 1 + app/components/primer/alpha/nav_list.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/components/primer/alpha/action_list.rb b/app/components/primer/alpha/action_list.rb index 6177960cbb..39e27ee7d6 100644 --- a/app/components/primer/alpha/action_list.rb +++ b/app/components/primer/alpha/action_list.rb @@ -10,6 +10,7 @@ module Alpha # and/or trailing visuals. class ActionList < Primer::Component status :alpha + audited_at "2023-07-10" DEFAULT_ROLE = :list diff --git a/app/components/primer/alpha/nav_list.rb b/app/components/primer/alpha/nav_list.rb index da483f6119..5cd5cd6f19 100644 --- a/app/components/primer/alpha/nav_list.rb +++ b/app/components/primer/alpha/nav_list.rb @@ -16,6 +16,7 @@ module Alpha # `selected_item_id` argument to select the appropriate item. class NavList < Primer::Component status :alpha + audited_at "2023-07-10" # @private def self.custom_element_name From f2dd086c01c024c5f078e6d1757a90c3978c687a Mon Sep 17 00:00:00 2001 From: primer-css Date: Thu, 13 Jul 2023 17:03:30 +0000 Subject: [PATCH 3/3] Generating static files --- static/arguments.json | 8 ++++---- static/audited_at.json | 8 ++++---- static/info_arch.json | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/static/arguments.json b/static/arguments.json index f29cf3ca92..e23a96e41f 100644 --- a/static/arguments.json +++ b/static/arguments.json @@ -52,7 +52,7 @@ { "component": "ActionList", "status": "alpha", - "a11y_reviewed": false, + "a11y_reviewed": true, "short_name": "ActionList", "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_list.rb", "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_list/default/", @@ -377,7 +377,7 @@ { "component": "ActionMenu::List", "status": "alpha", - "a11y_reviewed": false, + "a11y_reviewed": true, "short_name": "ActionMenuList", "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/list.rb", "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/list/default/", @@ -1427,7 +1427,7 @@ { "component": "NavList", "status": "alpha", - "a11y_reviewed": false, + "a11y_reviewed": true, "short_name": "NavList", "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list.rb", "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/nav_list/default/", @@ -1471,7 +1471,7 @@ { "component": "NavList::Group", "status": "alpha", - "a11y_reviewed": false, + "a11y_reviewed": true, "short_name": "NavListGroup", "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list/group.rb", "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/nav_list/group/default/", diff --git a/static/audited_at.json b/static/audited_at.json index 8f90241da3..e6568fbd7a 100644 --- a/static/audited_at.json +++ b/static/audited_at.json @@ -2,13 +2,13 @@ "Primer::Alpha::ActionBar": "", "Primer::Alpha::ActionBar::Divider": "", "Primer::Alpha::ActionBar::Item": "", - "Primer::Alpha::ActionList": "", + "Primer::Alpha::ActionList": "2023-07-10", "Primer::Alpha::ActionList::Divider": "", "Primer::Alpha::ActionList::FormWrapper": "", "Primer::Alpha::ActionList::Heading": "", "Primer::Alpha::ActionList::Item": "", "Primer::Alpha::ActionMenu": "", - "Primer::Alpha::ActionMenu::List": "", + "Primer::Alpha::ActionMenu::List": "2023-07-10", "Primer::Alpha::AutoComplete": "", "Primer::Alpha::AutoComplete::Item": "", "Primer::Alpha::Banner": "", @@ -33,9 +33,9 @@ "Primer::Alpha::Layout::Sidebar": "", "Primer::Alpha::Menu": "", "Primer::Alpha::MultiInput": "", - "Primer::Alpha::NavList": "", + "Primer::Alpha::NavList": "2023-07-10", "Primer::Alpha::NavList::Divider": "", - "Primer::Alpha::NavList::Group": "", + "Primer::Alpha::NavList::Group": "2023-07-10", "Primer::Alpha::NavList::Heading": "", "Primer::Alpha::NavList::Item": "", "Primer::Alpha::Navigation::Tab": "", diff --git a/static/info_arch.json b/static/info_arch.json index 7720e22f0c..ee7fb7629b 100644 --- a/static/info_arch.json +++ b/static/info_arch.json @@ -190,7 +190,7 @@ "requires_js": true, "component": "ActionList", "status": "alpha", - "a11y_reviewed": false, + "a11y_reviewed": true, "short_name": "ActionList", "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_list.rb", "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_list/default/", @@ -1475,7 +1475,7 @@ "requires_js": false, "component": "ActionMenu::List", "status": "alpha", - "a11y_reviewed": false, + "a11y_reviewed": true, "short_name": "ActionMenuList", "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_menu/list.rb", "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/action_menu/list/default/", @@ -4600,7 +4600,7 @@ "requires_js": true, "component": "NavList", "status": "alpha", - "a11y_reviewed": false, + "a11y_reviewed": true, "short_name": "NavList", "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list.rb", "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/nav_list/default/", @@ -5013,7 +5013,7 @@ "requires_js": true, "component": "NavList::Group", "status": "alpha", - "a11y_reviewed": false, + "a11y_reviewed": true, "short_name": "NavListGroup", "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list/group.rb", "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/nav_list/group/default/",