Commit 074892b 1 parent 4d260e8 commit 074892b Copy full SHA for 074892b
File tree 4 files changed +8
-7
lines changed
4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ import clsx from 'clsx';
4
4
import capitalize from '../utils/capitalize' ;
5
5
import { fade } from '../styles/colorManipulator' ;
6
6
import withStyles from '../styles/withStyles' ;
7
- import '../Button' ; // So we don't have any override priority issue.
7
+ import Button from '../Button' ;
8
+
9
+ // Force a side effect so we don't have any override priority issue.
10
+ // eslint-disable-next-line no-unused-expressions
11
+ Button . styles ;
8
12
9
13
export const styles = theme => ( {
10
14
/* Styles applied to the root element. */
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import React from 'react';
2
2
import PropTypes from 'prop-types' ;
3
3
import clsx from 'clsx' ;
4
4
import withStyles from '../styles/withStyles' ;
5
- import '../Button' ; // So we don't have any override priority issue.
6
5
7
6
export const styles = {
8
7
/* Styles applied to the root element. */
@@ -13,7 +12,7 @@ export const styles = {
13
12
} ,
14
13
/* Styles applied to the root element if `disableSpacing={false}`. */
15
14
spacing : {
16
- '& > * + * ' : {
15
+ '& > :not(:first-child) ' : {
17
16
marginLeft : 8 ,
18
17
} ,
19
18
} ,
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import React from 'react';
2
2
import PropTypes from 'prop-types' ;
3
3
import clsx from 'clsx' ;
4
4
import withStyles from '../styles/withStyles' ;
5
- import '../Button' ; // So we don't have any override priority issue.
6
5
7
6
export const styles = {
8
7
/* Styles applied to the root element. */
@@ -15,7 +14,7 @@ export const styles = {
15
14
} ,
16
15
/* Styles applied to the root element if `disableSpacing={false}`. */
17
16
spacing : {
18
- '& > * + * ' : {
17
+ '& > :not(:first-child) ' : {
19
18
marginLeft : 8 ,
20
19
} ,
21
20
} ,
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import React from 'react';
2
2
import PropTypes from 'prop-types' ;
3
3
import clsx from 'clsx' ;
4
4
import withStyles from '../styles/withStyles' ;
5
- import '../Button' ; // So we don't have any override priority issue.
6
5
7
6
export const styles = {
8
7
/* Styles applied to the root element. */
@@ -14,7 +13,7 @@ export const styles = {
14
13
} ,
15
14
/* Styles applied to the root element if `disableSpacing={false}`. */
16
15
spacing : {
17
- '& > * + * ' : {
16
+ '& > :not(:first-child) ' : {
18
17
marginLeft : 8 ,
19
18
} ,
20
19
} ,
You can’t perform that action at this time.
0 commit comments