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<
223223 </ Button >
224224 < Button
225225 classes = { {
226- root : commitButtonClass
226+ root : classes ( commitButtonClass , commitVariantSelector )
227227 } }
228- className = { commitVariantSelector }
229228 size = "small"
230229 aria-controls = { this . state . open ? 'split-button-menu' : undefined }
231230 aria-expanded = { this . state . open ? 'true' : undefined }
@@ -245,10 +244,7 @@ export class CommitBox extends React.Component<
245244 >
246245 { ( { TransitionProps } ) => (
247246 < Grow { ...TransitionProps } >
248- < Paper
249- classes = { { root : commitRoot } }
250- className = { commitPaperClass }
251- >
247+ < Paper classes = { { root : classes ( commitRoot , commitPaperClass ) } } >
252248 < ClickAwayListener onClickAway = { this . _handleClose } >
253249 < MenuList id = "split-button-menu" >
254250 { this . _options . map ( ( option , index ) => (
Original file line number Diff line number Diff line change 11import { TranslationBundle } from '@jupyterlab/translation' ;
22import Input from '@mui/material/Input' ;
33import * as React from 'react' ;
4+ import { classes } from 'typestyle' ;
45import {
56 activeStyle ,
67 commitDescriptionClass ,
@@ -106,9 +107,8 @@ export function CommitMessage(props: ICommitMessageProps): JSX.Element {
106107 return (
107108 < React . Fragment >
108109 < Input
109- className = { commitSummaryClass }
110110 classes = { {
111- root : commitRoot ,
111+ root : classes ( commitRoot , commitSummaryClass ) ,
112112 focused : activeStyle ,
113113 disabled : disabledStyle
114114 } }
@@ -132,9 +132,8 @@ export function CommitMessage(props: ICommitMessageProps): JSX.Element {
132132 fullWidth = { true }
133133 />
134134 < Input
135- className = { commitDescriptionClass }
136135 classes = { {
137- root : commitRoot ,
136+ root : classes ( commitRoot , commitDescriptionClass ) ,
138137 focused : activeStyle ,
139138 disabled : disabledStyle
140139 } }
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import MenuList from '@mui/material/MenuList';
1010import Paper from '@mui/material/Paper' ;
1111import Popper from '@mui/material/Popper' ;
1212import React from 'react' ;
13+ import { classes } from 'typestyle' ;
1314import {
1415 commitButtonClass ,
1516 commitPaperClass ,
@@ -100,9 +101,8 @@ export function RebaseAction(props: IRebaseActionProps): JSX.Element {
100101 < Button
101102 title = { props . trans . __ ( 'Pick another rebase action.' ) }
102103 classes = { {
103- root : commitButtonClass
104+ root : classes ( commitButtonClass , commitVariantSelector )
104105 } }
105- className = { commitVariantSelector }
106106 onClick = { onToggle }
107107 size = "small"
108108 aria-controls = { open ? 'rebase-split-button-menu' : undefined }
@@ -114,7 +114,7 @@ export function RebaseAction(props: IRebaseActionProps): JSX.Element {
114114 < Popper open = { open } anchorEl = { anchor . current } transition disablePortal >
115115 { ( { TransitionProps } ) => (
116116 < Grow { ...TransitionProps } >
117- < Paper classes = { { root : commitRoot } } className = { commitPaperClass } >
117+ < Paper classes = { { root : classes ( commitRoot , commitPaperClass ) } } >
118118 < ClickAwayListener onClickAway = { onClose } >
119119 < MenuList id = "rebase-split-button-menu" >
120120 < MenuItem
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { CardContent } from '@mui/material';
22import Card from '@mui/material/Card' ;
33import CardHeader from '@mui/material/CardHeader' ;
44import * as React from 'react' ;
5+ import { classes } from 'typestyle' ;
56import {
67 commitRoot ,
78 dirtyStagedFilesWarningBoxClass ,
@@ -34,9 +35,8 @@ export function WarningBox(props: IWarningBoxProps): JSX.Element {
3435 return (
3536 < Card
3637 classes = { {
37- root : commitRoot
38+ root : classes ( commitRoot , dirtyStagedFilesWarningBoxClass )
3839 } }
39- className = { dirtyStagedFilesWarningBoxClass }
4040 variant = "outlined"
4141 >
4242 < CardHeader
Original file line number Diff line number Diff line change @@ -101,9 +101,12 @@ export const commitButtonClass = style({
101101
102102export const commitVariantSelector = style ( {
103103 flex : '0 0 20px' ,
104- lineHeight : 'initial' ,
104+ lineHeight : 'initial !important ' ,
105105
106106 $nest : {
107+ '& span' : {
108+ lineHeight : '0'
109+ } ,
107110 '& .jp-icon3[fill]' : {
108111 fill : 'var(--jp-ui-inverse-font-color1)'
109112 }
@@ -131,7 +134,7 @@ export const commitRoot = style({
131134 color : 'var(--jp-ui-font-color1) !important' ,
132135 fontSize : 'var(--jp-ui-font-size1) !important' ,
133136 fontFamily : 'var(--jp-ui-font-family) !important' ,
134- backgroundColor : 'var(--jp-layout-color1)'
137+ backgroundColor : 'var(--jp-layout-color1) !important '
135138} ) ;
136139
137140export const activeStyle = style ( {
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ export const tabClass = style({
5454 maxWidth : '50%!important' ,
5555 minHeight : '36px!important' ,
5656
57+ color : 'var(--jp-ui-font-color1)!important' ,
5758 backgroundColor : 'var(--jp-layout-color2)!important' ,
5859
5960 borderBottom :
You can’t perform that action at this time.
0 commit comments