File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ interface Props extends EditorComponent {
5656 onSave ?: Function | null ;
5757 saveButtonLabel ?: string | null ;
5858 saveButtonAriaLabel ?: string | null ;
59+ className ?: string ;
5960}
6061
6162const EditorContainer : React . FC < Props > = ( {
@@ -68,6 +69,7 @@ const EditorContainer: React.FC<Props> = ({
6869 onSave : customOnSave = null ,
6970 saveButtonLabel = null ,
7071 saveButtonAriaLabel = null ,
72+ className = '' ,
7173} ) => {
7274 const intl = useIntl ( ) ;
7375 const dispatch = useDispatch ( ) ;
@@ -171,7 +173,7 @@ const EditorContainer: React.FC<Props> = ({
171173 />
172174 </ div >
173175 </ ModalDialog . Header >
174- < ModalDialog . Body className = " pb-0" >
176+ < ModalDialog . Body className = { className ? ` pb-0 ${ className } ` : 'pb-0' } >
175177 < div ref = { errorAlertRef } >
176178 < ErrorAlert
177179 isError = { uploadFailed }
Original file line number Diff line number Diff line change @@ -763,6 +763,7 @@ export const GameEditor = ({
763763 onClose = { onClose }
764764 isDirty = { ( ) => isDirty }
765765 validateEntry = { validateAllCards }
766+ className = "game-editor"
766767 >
767768 < div className = "editor-body h-75 overflow-auto" >
768769 { Object . keys ( validationErrors ) . length > 0 && isAlertVisible && (
Original file line number Diff line number Diff line change 99 padding : 8px 0 ;
1010 align-items : flex-start ;
1111 width : 100% ;
12- background : var (--extras-white , #FFFFFF );
1312}
1413
1514.terms {
@@ -301,3 +300,7 @@ width: 100%;
301300.shuffle-toggle-button :focus ::before {
302301 display : none ;
303302}
303+
304+ .game-editor {
305+ background-color : var (--pgn-color-light-300 );
306+ }
You can’t perform that action at this time.
0 commit comments