Commit 16cc089 1 parent deef3b0 commit 16cc089 Copy full SHA for 16cc089
File tree 6 files changed +8
-8
lines changed
legacy-plugin-chart-parallel-coordinates/src
legacy-preset-chart-nvd3/src
SqlLab/components/SaveDatasetActionButton
6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export default styled(ParallelCoordinates)`
106
106
height: 18px;
107
107
margin: 0px;
108
108
}
109
- .parcoords .row:nth-child (odd) {
109
+ .parcoords .row:nth-of-type (odd) {
110
110
background: ${ addAlpha ( theme . colors . grayscale . dark2 , 0.05 ) } ;
111
111
}
112
112
.parcoords .header {
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ export default styled(NVD3)`
152
152
white-space: nowrap;
153
153
font-weight: ${ ( { theme } ) => theme . typography . weights . bold } ;
154
154
}
155
- tbody tr:not(.tooltip-header) td:nth-child (2) {
155
+ tbody tr:not(.tooltip-header) td:nth-of-type (2) {
156
156
word-break: break-word;
157
157
}
158
158
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const SaveDatasetActionButton = ({
44
44
font-weight: ${ theme . gridUnit * 150 } ;
45
45
background-color: ${ theme . colors . primary . light4 } ;
46
46
color: ${ theme . colors . primary . dark1 } ;
47
- &:nth-child (2) {
47
+ &:nth-of-type (2) {
48
48
&:before,
49
49
&:hover:before {
50
50
border-left: 2px solid ${ theme . colors . primary . dark2 } ;
Original file line number Diff line number Diff line change @@ -30,18 +30,18 @@ export default function ButtonGroup(props: ButtonGroupProps) {
30
30
role = "group"
31
31
className = { className }
32
32
css = { {
33
- '& :nth-child (1):not(:nth-last-child (1))' : {
33
+ '& :nth-of-type (1):not(:nth-last-of-type (1))' : {
34
34
borderTopRightRadius : 0 ,
35
35
borderBottomRightRadius : 0 ,
36
36
borderRight : 0 ,
37
37
marginLeft : 0 ,
38
38
} ,
39
- '& :not(:nth-child (1)):not(:nth-last-child (1))' : {
39
+ '& :not(:nth-of-type (1)):not(:nth-last-of-type (1))' : {
40
40
borderRadius : 0 ,
41
41
borderRight : 0 ,
42
42
marginLeft : 0 ,
43
43
} ,
44
- '& :nth-last-child (1):not(:nth-child (1))' : {
44
+ '& :nth-last-of-type (1):not(:nth-of-type (1))' : {
45
45
borderTopLeftRadius : 0 ,
46
46
borderBottomLeftRadius : 0 ,
47
47
marginLeft : 0 ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ const StyledDropdownButton = styled.div`
42
42
background-color: ${ ( { theme } ) => theme . colors . grayscale . light2 } ;
43
43
color: ${ ( { theme } ) => theme . colors . grayscale . base } ;
44
44
}
45
- &:nth-child (2) {
45
+ &:nth-of-type (2) {
46
46
margin: 0;
47
47
border-radius: ${ ( { theme } ) =>
48
48
`0 ${ theme . gridUnit } px ${ theme . gridUnit } px 0` } ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const StyledDropdownButton = styled(
46
46
button.ant-btn:first-of-type {
47
47
display: none;
48
48
}
49
- > button.ant-btn:nth-child (2) {
49
+ > button.ant-btn:nth-of-type (2) {
50
50
display: inline-flex;
51
51
background-color: transparent !important;
52
52
height: unset;
You can’t perform that action at this time.
0 commit comments