You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Fieldset is used to group more than one .form-group
8
18
fieldset {
9
19
@extend%contain-floats;
10
20
width: 100%;
21
+
22
+
// Avoid extra vertical space (caused by fieldsets preventing margin collapse) when fieldsets with an h1 in the legend appear after the error-summary element.
23
+
// (Class used instead of adjacent sibling selector for IE 8 compatibility.)
24
+
&.after-error-summary {
25
+
margin-top: -$gutter-half;
26
+
27
+
@includemedia(tablet) {
28
+
margin-top: -$gutter;
29
+
}
30
+
}
11
31
}
12
32
13
-
// Form group is used to wrap label and input pairs
33
+
// Hack to let legends or elements within legends have margins in webkit browsers
// By default, form controls are 50% width for desktop,
95
152
// and 100% width for mobile
@@ -98,21 +155,42 @@ fieldset {
98
155
@includecore-19;
99
156
width: 100%;
100
157
101
-
padding: 4px;
102
-
background-color: $white;
103
-
border: 1pxsolid$border-colour;
104
-
105
-
// Disable webkit appearance and remove rounded corners
106
-
-webkit-appearance: none;
107
-
border-radius: 0;
158
+
padding: 5px4px4px;
159
+
// setting any background-color makes text invisible when changing colours to dark backgrounds in Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=1335476)
160
+
// as background-color and color need to always be set together, color should not be set either
161
+
border: 2pxsolid$text-colour;
108
162
163
+
// TODO: Remove 50% width set for tablet and up
164
+
// !! BREAKING CHANGE !!
109
165
@includemedia(tablet) {
110
166
width: 50%;
111
167
}
168
+
112
169
}
113
170
171
+
// Allow a qualifying element, remove rounded corners from inputs and textareas
172
+
// scss-lint:disable QualifyingElement
173
+
input.form-control,
174
+
textarea.form-control {
175
+
// Disable inner shadow and remove rounded corners
176
+
-webkit-appearance: none;
177
+
border-radius: 0;
178
+
}
179
+
180
+
textarea.form-control {
181
+
// Disable opacity and background image for Firefox
0 commit comments