File tree Expand file tree Collapse file tree 6 files changed +16
-17
lines changed Expand file tree Collapse file tree 6 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -223,9 +223,8 @@ export class CommitBox extends React.Component<
223
223
</ Button >
224
224
< Button
225
225
classes = { {
226
- root : commitButtonClass
226
+ root : classes ( commitButtonClass , commitVariantSelector )
227
227
} }
228
- className = { commitVariantSelector }
229
228
size = "small"
230
229
aria-controls = { this . state . open ? 'split-button-menu' : undefined }
231
230
aria-expanded = { this . state . open ? 'true' : undefined }
@@ -245,10 +244,7 @@ export class CommitBox extends React.Component<
245
244
>
246
245
{ ( { TransitionProps } ) => (
247
246
< Grow { ...TransitionProps } >
248
- < Paper
249
- classes = { { root : commitRoot } }
250
- className = { commitPaperClass }
251
- >
247
+ < Paper classes = { { root : classes ( commitRoot , commitPaperClass ) } } >
252
248
< ClickAwayListener onClickAway = { this . _handleClose } >
253
249
< MenuList id = "split-button-menu" >
254
250
{ this . _options . map ( ( option , index ) => (
Original file line number Diff line number Diff line change 1
1
import { TranslationBundle } from '@jupyterlab/translation' ;
2
2
import Input from '@mui/material/Input' ;
3
3
import * as React from 'react' ;
4
+ import { classes } from 'typestyle' ;
4
5
import {
5
6
activeStyle ,
6
7
commitDescriptionClass ,
@@ -106,9 +107,8 @@ export function CommitMessage(props: ICommitMessageProps): JSX.Element {
106
107
return (
107
108
< React . Fragment >
108
109
< Input
109
- className = { commitSummaryClass }
110
110
classes = { {
111
- root : commitRoot ,
111
+ root : classes ( commitRoot , commitSummaryClass ) ,
112
112
focused : activeStyle ,
113
113
disabled : disabledStyle
114
114
} }
@@ -132,9 +132,8 @@ export function CommitMessage(props: ICommitMessageProps): JSX.Element {
132
132
fullWidth = { true }
133
133
/>
134
134
< Input
135
- className = { commitDescriptionClass }
136
135
classes = { {
137
- root : commitRoot ,
136
+ root : classes ( commitRoot , commitDescriptionClass ) ,
138
137
focused : activeStyle ,
139
138
disabled : disabledStyle
140
139
} }
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import MenuList from '@mui/material/MenuList';
10
10
import Paper from '@mui/material/Paper' ;
11
11
import Popper from '@mui/material/Popper' ;
12
12
import React from 'react' ;
13
+ import { classes } from 'typestyle' ;
13
14
import {
14
15
commitButtonClass ,
15
16
commitPaperClass ,
@@ -100,9 +101,8 @@ export function RebaseAction(props: IRebaseActionProps): JSX.Element {
100
101
< Button
101
102
title = { props . trans . __ ( 'Pick another rebase action.' ) }
102
103
classes = { {
103
- root : commitButtonClass
104
+ root : classes ( commitButtonClass , commitVariantSelector )
104
105
} }
105
- className = { commitVariantSelector }
106
106
onClick = { onToggle }
107
107
size = "small"
108
108
aria-controls = { open ? 'rebase-split-button-menu' : undefined }
@@ -114,7 +114,7 @@ export function RebaseAction(props: IRebaseActionProps): JSX.Element {
114
114
< Popper open = { open } anchorEl = { anchor . current } transition disablePortal >
115
115
{ ( { TransitionProps } ) => (
116
116
< Grow { ...TransitionProps } >
117
- < Paper classes = { { root : commitRoot } } className = { commitPaperClass } >
117
+ < Paper classes = { { root : classes ( commitRoot , commitPaperClass ) } } >
118
118
< ClickAwayListener onClickAway = { onClose } >
119
119
< MenuList id = "rebase-split-button-menu" >
120
120
< MenuItem
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { CardContent } from '@mui/material';
2
2
import Card from '@mui/material/Card' ;
3
3
import CardHeader from '@mui/material/CardHeader' ;
4
4
import * as React from 'react' ;
5
+ import { classes } from 'typestyle' ;
5
6
import {
6
7
commitRoot ,
7
8
dirtyStagedFilesWarningBoxClass ,
@@ -34,9 +35,8 @@ export function WarningBox(props: IWarningBoxProps): JSX.Element {
34
35
return (
35
36
< Card
36
37
classes = { {
37
- root : commitRoot
38
+ root : classes ( commitRoot , dirtyStagedFilesWarningBoxClass )
38
39
} }
39
- className = { dirtyStagedFilesWarningBoxClass }
40
40
variant = "outlined"
41
41
>
42
42
< CardHeader
Original file line number Diff line number Diff line change @@ -101,9 +101,12 @@ export const commitButtonClass = style({
101
101
102
102
export const commitVariantSelector = style ( {
103
103
flex : '0 0 20px' ,
104
- lineHeight : 'initial' ,
104
+ lineHeight : 'initial !important ' ,
105
105
106
106
$nest : {
107
+ '& span' : {
108
+ lineHeight : '0'
109
+ } ,
107
110
'& .jp-icon3[fill]' : {
108
111
fill : 'var(--jp-ui-inverse-font-color1)'
109
112
}
@@ -131,7 +134,7 @@ export const commitRoot = style({
131
134
color : 'var(--jp-ui-font-color1) !important' ,
132
135
fontSize : 'var(--jp-ui-font-size1) !important' ,
133
136
fontFamily : 'var(--jp-ui-font-family) !important' ,
134
- backgroundColor : 'var(--jp-layout-color1)'
137
+ backgroundColor : 'var(--jp-layout-color1) !important '
135
138
} ) ;
136
139
137
140
export const activeStyle = style ( {
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ export const tabClass = style({
54
54
maxWidth : '50%!important' ,
55
55
minHeight : '36px!important' ,
56
56
57
+ color : 'var(--jp-ui-font-color1)!important' ,
57
58
backgroundColor : 'var(--jp-layout-color2)!important' ,
58
59
59
60
borderBottom :
You can’t perform that action at this time.
0 commit comments