Commit 9196d965 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch '300443-add-label' into 'master'

Add label to toggle in  edit_feature_flag.vue

See merge request gitlab-org/gitlab!54546
parents d54e6dc0 6fc05683
...@@ -86,6 +86,8 @@ export default { ...@@ -86,6 +86,8 @@ export default {
data-track-event="click_button" data-track-event="click_button"
data-track-label="feature_flag_toggle" data-track-label="feature_flag_toggle"
class="gl-mr-4" class="gl-mr-4"
:label="__('Feature flag status')"
label-position="hidden"
@change="toggleActive" @change="toggleActive"
/> />
<h3 class="page-title gl-m-0">{{ title }}</h3> <h3 class="page-title gl-m-0">{{ title }}</h3>
......
---
title: Add GlToggle label in edit feature flag
merge_request: 54546
author: Yogi (@yo)
type: changed
...@@ -12581,6 +12581,9 @@ msgstr "" ...@@ -12581,6 +12581,9 @@ msgstr ""
msgid "Feature flag is not enabled on the environment's project." msgid "Feature flag is not enabled on the environment's project."
msgstr "" msgstr ""
msgid "Feature flag status"
msgstr ""
msgid "Feature flag was not removed." msgid "Feature flag was not removed."
msgstr "" msgstr ""
......
...@@ -150,5 +150,12 @@ describe('Edit feature flag form', () => { ...@@ -150,5 +150,12 @@ describe('Edit feature flag form', () => {
label: 'feature_flag_toggle', label: 'feature_flag_toggle',
}); });
}); });
it('should render the toggle with a visually hidden label', () => {
expect(wrapper.find(GlToggle).props()).toMatchObject({
label: 'Feature flag status',
labelPosition: 'hidden',
});
});
}); });
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment