Skip to content

Commit

Permalink
inputFocus => inputFocused, itemHighlight => itemHighlighted
Browse files Browse the repository at this point in the history
  • Loading branch information
moroshko committed Feb 21, 2017
1 parent 1459ec3 commit da7f95d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions demo/src/components/App/components/Example11/Example11.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const theme = {
borderBottomLeftRadius: 0,
borderBottomRightRadius: 0
},
inputFocus: {
inputFocused: {
outline: 'none'
},
itemsContainer: {
Expand Down Expand Up @@ -54,7 +54,7 @@ const theme = {
cursor: 'pointer',
padding: '10px 20px'
},
itemHighlight: {
itemHighlighted: {
backgroundColor: '#ddd'
}
};
Expand Down
4 changes: 2 additions & 2 deletions demo/src/components/App/components/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
border-bottom-right-radius: 0;
}

.inputFocus {
.inputFocused {
outline: none;
}

Expand Down Expand Up @@ -56,7 +56,7 @@
padding: 10px 20px;
}

.itemHighlight {
.itemHighlighted {
background-color: #ddd;
}

Expand Down
4 changes: 2 additions & 2 deletions demo/standalone/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
-webkit-appearance: none;
}

.react-autowhatever__input--focus {
.react-autowhatever__input--focused {
outline: none;
}

Expand Down Expand Up @@ -57,6 +57,6 @@
padding: 10px 20px;
}

.react-autowhatever__item--highlight {
.react-autowhatever__item--highlighted {
background-color: #ddd;
}
6 changes: 3 additions & 3 deletions src/Autowhatever.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ const defaultTheme = {
containerOpen: 'react-autowhatever__container--open',
input: 'react-autowhatever__input',
inputOpen: 'react-autowhatever__input--open',
inputFocus: 'react-autowhatever__input--focus',
inputFocused: 'react-autowhatever__input--focused',
itemsContainer: 'react-autowhatever__items-container',
itemsContainerOpen: 'react-autowhatever__items-container--open',
itemsList: 'react-autowhatever__items-list',
item: 'react-autowhatever__item',
itemHighlight: 'react-autowhatever__item--highlight',
itemHighlighted: 'react-autowhatever__item--highlighted',
sectionContainer: 'react-autowhatever__section-container',
sectionContainerFirst: 'react-autowhatever__section-container--first',
sectionTitle: 'react-autowhatever__section-title'
Expand Down Expand Up @@ -329,7 +329,7 @@ export default class Autowhatever extends Component {
`react-autowhatever-${id}-input`,
'input',
isOpen && 'inputOpen',
isInputFocused && 'inputFocus'
isInputFocused && 'inputFocused'
),
...this.props.inputProps,
onFocus: this.onFocus,
Expand Down
2 changes: 1 addition & 1 deletion src/ItemsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class ItemsList extends Component {
const itemPropsObj = isItemPropsFunction ? itemProps({ sectionIndex, itemIndex }) : itemProps;
const allItemProps = {
id: getItemId(sectionIndex, itemIndex),
...theme(itemKey, 'item', isHighlighted && 'itemHighlight'),
...theme(itemKey, 'item', isHighlighted && 'itemHighlighted'),
...itemPropsObj
};

Expand Down

0 comments on commit da7f95d

Please sign in to comment.