Skip to content

Commit f6e9855

Browse files
author
Victor George
committed
Added label to feature picker switch
1 parent c579d07 commit f6e9855

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

src/projects/detail/components/FeatureSelector/DefaultFeatureForm.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class DefaultFeatureForm extends Component {
6868
onChange={ this.toggleFeature }
6969
name="featue-active"
7070
checked={isActive}
71+
label="Enable feature"
7172
/>
7273
</div>
7374
<div className="feature-form-content">

src/projects/detail/components/FeatureSelector/FeatureForm.scss

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,17 @@
1212
background-color: $tc-gray-neutral-dark;
1313
}
1414
}
15-
15+
1616
.feature-title-row {
1717
display: flex;
1818
justify-content: space-between;
1919
margin-bottom: 4 * $base-unit;
2020
padding-bottom: 2 * $base-unit;
2121
border-bottom: 1px solid $tc-gray-10;
22-
22+
2323
.title {
2424
@include tc-heading;
2525
@include roboto-medium;
26-
2726
flex: 1;
2827
color: $tc-black;
2928
white-space: nowrap;
@@ -56,7 +55,6 @@
5655
}
5756

5857
.feature-form-content {
59-
6058
.feature-description {
6159
@include roboto;
6260
font-size: $tc-body-md;
@@ -65,10 +63,9 @@
6563
color: $tc-gray-50;
6664
margin: 4 * $base-unit 0px;
6765
}
68-
66+
6967
.predefined-feature-form,
7068
.custom-feature-form {
71-
7269
.feature-notes {
7370
label {
7471
@include tc-label-md;
@@ -102,7 +99,7 @@
10299
.feature-form-actions {
103100
display: flex;
104101
justify-content: center;
105-
102+
106103
button + button {
107104
margin-left: 4 * $base-unit;
108105
}
@@ -122,11 +119,27 @@
122119
}
123120
}
124121
}
125-
122+
126123
.description {
127124
textarea {
128125
margin-top: 64px;
129126
height: 150px;
130127
}
131128
}
132-
}
129+
130+
// Switch button extensions
131+
.SwitchButton {
132+
.label {
133+
cursor: pointer;
134+
transition: color 200ms ease-in-out;
135+
-moz-user-select: none;
136+
-webkit-user-select: none;
137+
-ms-user-select: none;
138+
user-select: none;
139+
}
140+
141+
&:hover .label {
142+
color: $tc-black;
143+
}
144+
}
145+
}

0 commit comments

Comments
 (0)