File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react';
2
2
import classnames from 'classnames' ;
3
3
import { themr } from 'react-css-themr' ;
4
4
import PropTypes from 'prop-types' ;
5
- import defaultTheme from './theme.scss' ;
5
+ import defaultTheme from './theme.module. scss' ;
6
6
7
7
const TextInput = ( {
8
8
additionalClasses,
@@ -12,7 +12,7 @@ const TextInput = ({
12
12
} ) => {
13
13
const wrapperClasses = classnames ( theme . inputWrapper , additionalClasses ) ;
14
14
const innerWrapperProps = {
15
- className : 'innerWrapper' ,
15
+ className : ` ${ theme . inputInnerWrapper } inputInnerWrapper` ,
16
16
} ;
17
17
const inputElementProps = {
18
18
...others ,
@@ -24,7 +24,7 @@ const TextInput = ({
24
24
{ React . createElement (
25
25
'div' , innerWrapperProps ,
26
26
React . createElement ( 'input' , inputElementProps ) ,
27
- React . createElement ( 'span' , { className : 'input-focus' } ) ,
27
+ React . createElement ( 'span' , { className : ` ${ theme [ 'input-focus' ] } input-focus` } ) ,
28
28
) }
29
29
</ div >
30
30
) ;
Original file line number Diff line number Diff line change 2
2
3
3
:local(.inputWrapper ) {
4
4
padding : 5px ;
5
- .innerWrapper {
5
+ .inputInnerWrapper {
6
6
position : relative ;
7
7
}
8
8
}
You can’t perform that action at this time.
0 commit comments