Skip to content

Commit d57cd8e

Browse files
authored
Merge pull request #12 from lob/css
Fixes css bug
2 parents 70bab1d + ef57f94 commit d57cd8e

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lob/react-address-autocomplete",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"description": "A collection of components and utility functions for verifying and suggesting addresses using Lob",
55
"author": "Lob",
66
"license": "MIT",

src/Autocomplete.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React, { useEffect, useState, useRef } from 'react'
33
import Select, { components } from 'react-select'
44
import throttle from 'lodash.throttle'
5-
import './Autocomplete.css'
5+
import styles from './Autocomplete.module.css'
66

77
// Internal Dependencies
88
import { postAutocompleteAddress } from './api'
@@ -28,16 +28,16 @@ const LobLogo = ({ className }) => {
2828
}
2929

3030
const poweredByLob = () => (
31-
<a href={LOB_URL} className='lob-gray-text'>
31+
<a href={LOB_URL} className={styles.lobGrayText}>
3232
<span style={{ verticalAlign: 'top' }}>Powered by </span>
33-
<LobLogo className='lob-logo' />
33+
<LobLogo className={styles.lobLogo} />
3434
</a>
3535
)
3636

3737
const getLobLabel = () => (
38-
<div className={LOB_LABEL}>
39-
<LobLogo className='logo-large' />
40-
<span className='lob-gray-text'>Deliverable addresses</span>
38+
<div className={styles.lobLabel}>
39+
<LobLogo className={styles.logoLarge} />
40+
<span className={styles.lobGrayText}>Deliverable addresses</span>
4141
<a href={LOB_URL}>Learn more</a>
4242
</div>
4343
)
@@ -76,7 +76,7 @@ const getOptionElement = (suggestion, inputValue) => {
7676
return (
7777
<span>
7878
{primaryLineElement}
79-
<span className='lob-gray-text'>
79+
<span className={styles.lobGrayText}>
8080
{city},&nbsp;{state.toUpperCase()},&nbsp;{zip_code}
8181
</span>
8282
</span>
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
.lob-gray-text {
1+
.lobGrayText {
22
color: #888;
33
text-decoration: inherit;
44
}
55

6-
.lob-label {
6+
.lobLabel {
77
align-items: center;
88
border-bottom: 1px solid #DDDDDD;
99
cursor: pointer;
@@ -13,24 +13,24 @@
1313
pointer-events: none;
1414
}
1515

16-
.lob-label > a {
16+
.lobLabel > a {
1717
font-weight: 600;
1818
color: #0699D6;
1919
text-decoration: inherit;
2020
}
2121

22-
.lob-label > span {
22+
.lobLabel > span {
2323
flex: 1;
2424
font-weight: 400;
2525
margin-left: 12px;
2626
}
2727

28-
.lob-logo {
28+
.lobLogo {
2929
height: .9em;
3030
margin-left: 1px;
3131
margin-top: 3px;
3232
}
3333

34-
.logo-large {
34+
.logoLarge {
3535
height: 21px;
3636
}

0 commit comments

Comments
 (0)