Skip to content

Commit da1ae6f

Browse files
committed
⚗ Update textInput theme to .module.scss extension
1 parent d387a9f commit da1ae6f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/textInput/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import classnames from 'classnames';
33
import { themr } from 'react-css-themr';
44
import PropTypes from 'prop-types';
5-
import defaultTheme from './theme.scss';
5+
import defaultTheme from './theme.module.scss';
66

77
const TextInput = ({
88
additionalClasses,
@@ -12,7 +12,7 @@ const TextInput = ({
1212
}) => {
1313
const wrapperClasses = classnames(theme.inputWrapper, additionalClasses);
1414
const innerWrapperProps = {
15-
className: 'innerWrapper',
15+
className: `${theme.inputInnerWrapper} inputInnerWrapper`,
1616
};
1717
const inputElementProps = {
1818
...others,
@@ -24,7 +24,7 @@ const TextInput = ({
2424
{React.createElement(
2525
'div', innerWrapperProps,
2626
React.createElement('input', inputElementProps),
27-
React.createElement('span', { className: 'input-focus' }),
27+
React.createElement('span', { className: `${theme['input-focus']} input-focus` }),
2828
)}
2929
</div>
3030
);

lib/textInput/theme.scss renamed to lib/textInput/theme.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
:local(.inputWrapper) {
44
padding: 5px;
5-
.innerWrapper {
5+
.inputInnerWrapper {
66
position: relative;
77
}
88
}

0 commit comments

Comments
 (0)