Migrate `form-input-class-vue` in `app/assets/javascripts/badges/components/badge_form.vue`
Detected usage of gl-form-input
class inside JS/Vue file.
Please use the GlFormInput
component from @gitlab/ui
.
Implementation guide
In app/assets/javascripts/badges/components/badge_form.vue
:
- Migrate
input
tags toGlFormInput
- Migrate
label
tags to useGlFormGroup
. We should be able to move the help text to thelabel-description
slot. - Use
invalid-feedback
slot andstate
props for error messages - Use
description
slot for description - Fix any failing specs in
spec/frontend/badges/components/badge_form_spec.js
- Go to a group ->
Settings
->General
->Badges
and verify everything looks and works correctly - Add before and after screenshots to MR description
Edited by Peter Hegman