File tree 9 files changed +16
-21
lines changed
workspaces/WorkspaceTiming/Chart
TemplatePage/TemplateInsightsPage
WorkspacePage/WorkspaceNotifications
9 files changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,9 @@ export const InputGroup: FC<HTMLProps<HTMLDivElement>> = (props) => {
25
25
zIndex : 2 ,
26
26
} ,
27
27
28
- "& > *:first-child " : {
28
+ "& > *:first-of-type " : {
29
29
borderTopRightRadius : 0 ,
30
30
borderBottomRightRadius : 0 ,
31
-
32
- "&.MuiFormControl-root .MuiInputBase-root" : {
33
- borderTopRightRadius : 0 ,
34
- borderBottomRightRadius : 0 ,
35
- } ,
36
31
} ,
37
32
38
33
"& > *:last-child" : {
@@ -45,7 +40,7 @@ export const InputGroup: FC<HTMLProps<HTMLDivElement>> = (props) => {
45
40
} ,
46
41
} ,
47
42
48
- "& > *:not(:first-child ):not(:last-child)" : {
43
+ "& > *:not(:first-of-type ):not(:last-child)" : {
49
44
borderRadius : 0 ,
50
45
51
46
"&.MuiFormControl-root .MuiInputBase-root" : {
Original file line number Diff line number Diff line change @@ -348,19 +348,19 @@ const MarkdownGfmAlert: FC<MarkdownGfmAlertProps> = ({
348
348
"[&_p]:m-0 [&_p]:mb-2" ,
349
349
350
350
alertType === "important" &&
351
- "border-highlight-purple [&_p:first-child ]:text-highlight-purple" ,
351
+ "border-highlight-purple [&_p:first-of-type ]:text-highlight-purple" ,
352
352
353
353
alertType === "warning" &&
354
- "border-border-warning [&_p:first-child ]:text-border-warning" ,
354
+ "border-border-warning [&_p:first-of-type ]:text-border-warning" ,
355
355
356
356
alertType === "note" &&
357
- "border-highlight-sky [&_p:first-child ]:text-highlight-sky" ,
357
+ "border-highlight-sky [&_p:first-of-type ]:text-highlight-sky" ,
358
358
359
359
alertType === "tip" &&
360
- "border-highlight-green [&_p:first-child ]:text-highlight-green" ,
360
+ "border-highlight-green [&_p:first-of-type ]:text-highlight-green" ,
361
361
362
362
alertType === "caution" &&
363
- "border-highlight-red [&_p:first-child ]:text-highlight-red" ,
363
+ "border-highlight-red [&_p:first-of-type ]:text-highlight-red" ,
364
364
) }
365
365
>
366
366
< p className = "font-bold" >
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ export const TableBody = React.forwardRef<
36
36
< tbody
37
37
ref = { ref }
38
38
className = { cn (
39
- "[&>tr:first-child >td]:border-t [&>tr>td:first-child ]:border-l" ,
39
+ "[&>tr:first-of-type >td]:border-t [&>tr>td:first-of-type ]:border-l" ,
40
40
"[&>tr:last-child>td]:border-b [&>tr>td:last-child]:border-r" ,
41
- "[&>tr:first-child >td:first-child ]:rounded-tl-md [&>tr:first-child >td:last-child]:rounded-tr-md" ,
42
- "[&>tr:last-child>td:first-child ]:rounded-bl-md [&>tr:last-child>td:last-child]:rounded-br-md" ,
41
+ "[&>tr:first-of-type >td:first-of-type ]:rounded-tl-md [&>tr:first-of-type >td:last-child]:rounded-tr-md" ,
42
+ "[&>tr:last-child>td:first-of-type ]:rounded-bl-md [&>tr:last-child>td:last-child]:rounded-br-md" ,
43
43
className ,
44
44
) }
45
45
{ ...props }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const styles = {
19
19
borderBottom : 0 ,
20
20
} ,
21
21
22
- "&:first-child " : {
22
+ "&:first-of-type " : {
23
23
borderTopLeftRadius : 8 ,
24
24
borderTopRightRadius : 8 ,
25
25
} ,
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ const styles = {
185
185
} ,
186
186
} ,
187
187
188
- "& li:first-child " : {
188
+ "& li:first-of-type " : {
189
189
color : theme . palette . text . secondary ,
190
190
} ,
191
191
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const XAxisLabel: FC<HTMLProps<HTMLLIElement>> = (props) => {
56
56
// Note: This adjustment is not applied to the first element,
57
57
// as the 0 label/value is not displayed in the chart.
58
58
width : "calc(var(--x-axis-width) * 2)" ,
59
- "&:not(:first-child )" : {
59
+ "&:not(:first-of-type )" : {
60
60
marginLeft : "calc(-1 * var(--x-axis-width))" ,
61
61
} ,
62
62
} ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const styles = {
35
35
flexShrink : 0 ,
36
36
} ,
37
37
section : ( theme ) => ( {
38
- "&:not(:first-child )" : {
38
+ "&:not(:first-of-type )" : {
39
39
borderTop : `1px solid ${ theme . palette . divider } ` ,
40
40
} ,
41
41
} ) ,
Original file line number Diff line number Diff line change @@ -559,7 +559,7 @@ const TemplateParametersUsagePanel: FC<TemplateParametersUsagePanelProps> = ({
559
559
marginRight : - 24 ,
560
560
borderTop : `1px solid ${ theme . palette . divider } ` ,
561
561
width : "calc(100% + 48px)" ,
562
- "&:first-child " : {
562
+ "&:first-of-type " : {
563
563
borderTop : 0 ,
564
564
} ,
565
565
gap : 24 ,
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ const styles = {
123
123
lineHeight : "1.5" ,
124
124
borderTop : `1px solid ${ theme . palette . divider } ` ,
125
125
126
- "&:first-child " : {
126
+ "&:first-of-type " : {
127
127
borderTop : 0 ,
128
128
} ,
129
129
} ) ,
You can’t perform that action at this time.
0 commit comments