Add missing select options for controls (#35178) (#35237)

(cherry picked from commit f683a497eb)

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2021-06-04 11:53:40 +02:00
committed by GitHub
co-authored by Alex Khomenko
parent bc49ceddb7
commit 3fa0811d6b
2 changed files with 10 additions and 4 deletions
@@ -33,8 +33,13 @@ export default {
closeOnConfirm: true,
},
argTypes: {
confirmVariant: { control: { type: 'select' } },
size: { control: { type: 'select' } },
confirmVariant: {
control: {
type: 'select',
},
options: ['primary', 'secondary', 'destructive', 'link'],
},
size: { control: { type: 'select' }, options: ['xs', 'sm', 'md', 'lg'] },
},
} as Meta;
@@ -20,9 +20,10 @@ export default {
argTypes: {
disabledOptions: {
name: 'Disabled item',
control: { type: 'select', options: ['', 'graphite', 'prometheus', 'elastic'] },
control: { type: 'select' },
options: ['', 'graphite', 'prometheus', 'elastic'],
},
size: { control: { type: 'select' } },
size: { control: { type: 'select' }, options: ['xs', 'sm', 'md', 'lg'] },
},
};