From 718e9eaf08d0f4f3045fd445fc10a71e0b333261 Mon Sep 17 00:00:00 2001 From: Paul Slaughter Date: Fri, 8 Apr 2022 10:00:46 -0500 Subject: [PATCH] Replace segmented-control with implementation using button-group - Use in ci_cd_analytics_chart - We are planning to move this new component to GitLab UI https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1787 --- .../ci_cd_analytics_charts.vue | 10 +- .../segmented_control_button_group.vue | 35 ++++++ .../components/ci_cd_analytics_charts_spec.js | 6 +- .../segmented_control_button_group_spec.js | 104 ++++++++++++++++++ 4 files changed, 149 insertions(+), 6 deletions(-) create mode 100644 app/assets/javascripts/vue_shared/components/segmented_control_button_group.vue create mode 100644 spec/frontend/vue_shared/components/segmented_control_button_group_spec.js diff --git a/app/assets/javascripts/vue_shared/components/ci_cd_analytics/ci_cd_analytics_charts.vue b/app/assets/javascripts/vue_shared/components/ci_cd_analytics/ci_cd_analytics_charts.vue index 8b76af05ffe8f9..6a03e38a31de02 100644 --- a/app/assets/javascripts/vue_shared/components/ci_cd_analytics/ci_cd_analytics_charts.vue +++ b/app/assets/javascripts/vue_shared/components/ci_cd_analytics/ci_cd_analytics_charts.vue @@ -1,12 +1,12 @@