@@ -110,24 +110,6 @@ styles = jss
110
110
{ display: " flex"
111
111
, flexFlow: " row nowrap"
112
112
113
- , " &[data-force-top-label=\" true\" ]" :
114
- { flexFlow: " column nowrap"
115
-
116
- , " & .labeled-field--left" :
117
- { flex: " initial"
118
- , whiteSpace: " normal"
119
- }
120
-
121
- , " & .labeled-field--right" :
122
- { flex: " initial"
123
- , maxWidth: " none"
124
- }
125
- }
126
-
127
- , " @media (max-width: 448px)" :
128
- { flexFlow: " column nowrap"
129
- }
130
-
131
113
, " & .labeled-field--left" :
132
114
{ flex: " 0 1 30%"
133
115
, whiteSpace: " nowrap"
@@ -138,13 +120,32 @@ styles = jss
138
120
, maxWidth: " 70%"
139
121
}
140
122
123
+ , " &[data-force-top-label=\" true\" ]" : labeledFieldTopLabelStyles
124
+
125
+ , " @media (max-width: 448px)" : labeledFieldTopLabelStyles
126
+
141
127
, " & .labeled-field--validation-error" : labeledFieldValidationErrorStyles
142
128
143
129
, " & .labeled-field--validation-warning" : labeledFieldValidationWarningStyles
144
130
}
145
131
}
146
132
}
147
133
134
+ labeledFieldTopLabelStyles :: JSS
135
+ labeledFieldTopLabelStyles = jss
136
+ { flexFlow: " column nowrap"
137
+
138
+ , " & .labeled-field--left" :
139
+ { flex: " initial"
140
+ , whiteSpace: " normal"
141
+ }
142
+
143
+ , " & .labeled-field--right" :
144
+ { flex: " initial"
145
+ , maxWidth: " none"
146
+ }
147
+ }
148
+
148
149
labeledFieldValidationErrorStyles :: JSS
149
150
labeledFieldValidationErrorStyles = jss
150
151
{ color: cssStringHSLA colors.accent3
0 commit comments