aboutsummaryrefslogtreecommitdiffstats
path: root/components/radioGroup
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2018-05-21 20:19:48 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-21 20:19:48 +0000
commit05b37297177e8a342668c15e5d6f738b51f7aedd (patch)
treee236c96df52a13f935292db8aa73e84d0c41ad8a /components/radioGroup
parent884dfb789593d2a3cc319047ab1f0215778aec9f (diff)
parent1994c98063c27a41797dec01f2ca9fcbe33ceab0 (diff)
Merge "init commit onap ui"HEAD2.0.0-ONAPmasterbeijing2.0.0-ONAP
Diffstat (limited to 'components/radioGroup')
-rw-r--r--components/radioGroup/_radioGroup.scss20
-rw-r--r--components/radioGroup/radio-group-disabled.html13
-rw-r--r--components/radioGroup/radio-group-no-title.html12
-rw-r--r--components/radioGroup/radio-group-value.html13
-rw-r--r--components/radioGroup/radio-group.html13
5 files changed, 71 insertions, 0 deletions
diff --git a/components/radioGroup/_radioGroup.scss b/components/radioGroup/_radioGroup.scss
new file mode 100644
index 0000000..6b33a79
--- /dev/null
+++ b/components/radioGroup/_radioGroup.scss
@@ -0,0 +1,20 @@
+.sdc-radio-group {
+ .sdc-radio-group__radios {
+ display: flex;
+ }
+ .sdc-radio-group__legend {
+ @include body-2-emphasis;
+ display: inline-block;
+ margin-bottom: 5px;
+ }
+ .sdc-radio__label {
+ @include body-1;
+ margin-right: 20px;
+ }
+ .vertical{
+ flex-direction: column;
+ .sdc-radio{
+ margin-bottom: 15px;
+ }
+ }
+}
diff --git a/components/radioGroup/radio-group-disabled.html b/components/radioGroup/radio-group-disabled.html
new file mode 100644
index 0000000..3cdedc0
--- /dev/null
+++ b/components/radioGroup/radio-group-disabled.html
@@ -0,0 +1,13 @@
+<div class='sdc-radio-group'>
+ <label class='sdc-radio-group__legend'>Group D</label>
+ <div class='sdc-radio-group__radios'>
+ <div class="sdc-radio">
+ <input type="radio" name="grp4" class="sdc-radio__input" value="1" disabled>
+ <label class="sdc-radio__label">option 1</label>
+ </div>
+ <div class="sdc-radio">
+ <input type="radio" name="grp4" class="sdc-radio__input" value="2" disabled>
+ <label class="sdc-radio__label">option 2</label>
+ </div>
+ </div>
+</div>
diff --git a/components/radioGroup/radio-group-no-title.html b/components/radioGroup/radio-group-no-title.html
new file mode 100644
index 0000000..76217fe
--- /dev/null
+++ b/components/radioGroup/radio-group-no-title.html
@@ -0,0 +1,12 @@
+<div class='sdc-radio-group'>
+ <div class='sdc-radio-group__radios'>
+ <div class="sdc-radio">
+ <input type="radio" name="grp5" class="sdc-radio__input" value="1">
+ <label class="sdc-radio__label">option 1</label>
+ </div>
+ <div class="sdc-radio">
+ <input type="radio" name="grp5" class="sdc-radio__input" value="2">
+ <label class="sdc-radio__label">option 2</label>
+ </div>
+ </div>
+</div>
diff --git a/components/radioGroup/radio-group-value.html b/components/radioGroup/radio-group-value.html
new file mode 100644
index 0000000..ac604a6
--- /dev/null
+++ b/components/radioGroup/radio-group-value.html
@@ -0,0 +1,13 @@
+<div class='sdc-radio-group'>
+ <label class='sdc-radio-group__legend'>Group B</label>
+ <div class='sdc-radio-group__radios'>
+ <div class="sdc-radio">
+ <input type="radio" name="grp2" checked class="sdc-radio__input" value="1">
+ <label class="sdc-radio__label">option 1</label>
+ </div>
+ <div class="sdc-radio">
+ <input type="radio" name="grp2" class="sdc-radio__input" value="2">
+ <label class="sdc-radio__label">option 2</label>
+ </div>
+ </div>
+</div>
diff --git a/components/radioGroup/radio-group.html b/components/radioGroup/radio-group.html
new file mode 100644
index 0000000..baa1444
--- /dev/null
+++ b/components/radioGroup/radio-group.html
@@ -0,0 +1,13 @@
+<div class='sdc-radio-group'>
+ <label class='sdc-radio-group__legend'>Group C</label>
+ <div class='sdc-radio-group__radios'>
+ <div class="sdc-radio">
+ <input type="radio" name="grp3" class="sdc-radio__input" value="1">
+ <label class="sdc-radio__label">option 1</label>
+ </div>
+ <div class="sdc-radio">
+ <input type="radio" name="grp3" class="sdc-radio__input" value="2">
+ <label class="sdc-radio__label">option 2</label>
+ </div>
+ </div>
+</div>