Skip to content

Commit 8d6ae17

Browse files
Make dropdown uniform across the site
1 parent c5cbbad commit 8d6ae17

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

dist/bundle.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bundle.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74100,7 +74100,9 @@ function (_Component) {
7410074100
}, external_react_default.a.createElement("label", {
7410174101
className: "o-form__input-label",
7410274102
htmlFor: "countryCode"
74103-
}, "Country *"), external_react_default.a.createElement(Field, {
74103+
}, "Country *"), external_react_default.a.createElement("div", {
74104+
className: "o-form__input-group"
74105+
}, external_react_default.a.createElement(Field, {
7410474106
component: "select",
7410574107
name: "countryCode",
7410674108
className: "o-form__input-field o-form__input-block",
@@ -74111,7 +74113,7 @@ function (_Component) {
7411174113
value: "uk"
7411274114
}, "United Kingdom"), external_react_default.a.createElement("option", {
7411374115
value: "us"
74114-
}, "United States")), external_react_default.a.createElement("label", {
74116+
}, "United States"))), external_react_default.a.createElement("label", {
7411574117
className: "o-form__input-label",
7411674118
htmlFor: "firstName"
7411774119
}, "First name *"), external_react_default.a.createElement(Field, {

dist/scss/50_objects/_o-form.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ $input-checkbox-spacing: 8px !default;
202202
background-image: url("data:image/svg+xml;charset=UTF8,<svg width='100%' height='100%' viewBox='0 0 40 10' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;'><g id='Layer1'><g><path d='M13.111,1.124L19.492,8.886L25.911,1.105' style='fill:none;stroke:black;stroke-width:2.21px;'/></g></g></svg>");
203203
background-position: right center;
204204
background-repeat: no-repeat;
205-
background-size: 5%;
205+
background-size: 30px;
206206
font-size: .8em;
207207
}
208208
}

src/components/account/addresses.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ class AccountAddresses extends Component {
102102
/>
103103
{ (addingNewAddress || currentAddress) && <Form className="o-form__wrapper o-form__background">
104104
<label className='o-form__input-label' htmlFor='countryCode'>Country *</label>
105-
<Field component="select" name="countryCode" className='o-form__input-field o-form__input-block' placeholder='Choose…'>
106-
<option value="">Choose…</option>
107-
<option value="uk">United Kingdom</option>
108-
<option value="us">United States</option>
109-
</Field>
105+
<div className='o-form__input-group'>
106+
<Field component='select' name='countryCode' className='o-form__input-field o-form__input-block' placeholder='Choose…'>
107+
<option value=''>Choose…</option>
108+
<option value='uk'>United Kingdom</option>
109+
<option value='us'>United States</option>
110+
</Field>
111+
</div>
110112

111113
<label className='o-form__input-label' htmlFor='firstName'>First name *</label>
112114
<Field type='text' name='firstName' className='o-form__input-field o-form__input-block' />

src/scss/50_objects/_o-form.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ $input-checkbox-spacing: 8px !default;
202202
background-image: url("data:image/svg+xml;charset=UTF8,<svg width='100%' height='100%' viewBox='0 0 40 10' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;'><g id='Layer1'><g><path d='M13.111,1.124L19.492,8.886L25.911,1.105' style='fill:none;stroke:black;stroke-width:2.21px;'/></g></g></svg>");
203203
background-position: right center;
204204
background-repeat: no-repeat;
205-
background-size: 5%;
205+
background-size: 30px;
206206
font-size: .8em;
207207
}
208208
}

0 commit comments

Comments
 (0)