Forms: Introduce form field (#20632)

* Introduce new Switch component

* Experiment with different focus style

* Review update

* Update on/off swtch colors

* Introduce Form.Field component

* Enable className prop on form's field

* Remove not used imports

* Update packages/grafana-ui/src/components/Forms/Field.tsx

Co-Authored-By: Peter Holmberg <peterholmberg@users.noreply.github.com>

* Make switch usable in field story

* Add predefined input sizes

* Add util to display story on a debug canvas

* Test form

* Updated the test form

* Fix snapshot
This commit is contained in:
Dominik Prokop
2019-11-25 16:38:06 +01:00
committed by GitHub
parent e7f0bbf1ff
commit 1bd0c87f66
11 changed files with 386 additions and 21 deletions

View File

@@ -79,6 +79,7 @@ export interface GrafanaThemeCommons {
formLabelPadding: string;
formLabelMargin: string;
formValidationMessagePadding: string;
formValidationMessageMargin: string;
};
border: {
radius: {