@@ -123,6 +123,8 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
123123 style . marginTop = "15px" ;
124124 }
125125
126+ const borderColor = this . state . selectedCategory ? Config . config . barTypes [ this . state . selectedCategory ] ?. color : null ;
127+
126128 // Create time display
127129 let timeDisplay : JSX . Element ;
128130 const timeDisplayStyle : React . CSSProperties = { } ;
@@ -151,7 +153,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
151153 < input id = { "submittingTime0" + this . idSuffix }
152154 className = "sponsorTimeEdit sponsorTimeEditInput"
153155 type = "text"
154- style = { { color : "inherit" , backgroundColor : "inherit" } }
156+ style = { { color : "inherit" , backgroundColor : "inherit" , borderColor } }
155157 value = { this . state . sponsorTimeEdits [ 0 ] ?? "" }
156158 onKeyDown = { ( e ) => e . stopPropagation ( ) }
157159 onKeyUp = { ( e ) => e . stopPropagation ( ) }
@@ -168,7 +170,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
168170 < input id = { "submittingTime1" + this . idSuffix }
169171 className = "sponsorTimeEdit sponsorTimeEditInput"
170172 type = "text"
171- style = { { color : "inherit" , backgroundColor : "inherit" } }
173+ style = { { color : "inherit" , backgroundColor : "inherit" , borderColor } }
172174 value = { this . state . sponsorTimeEdits [ 1 ] ?? "" }
173175 onKeyDown = { ( e ) => e . stopPropagation ( ) }
174176 onKeyUp = { ( e ) => e . stopPropagation ( ) }
@@ -215,7 +217,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
215217 < select id = { "sponsorTimeCategories" + this . idSuffix }
216218 className = "sponsorTimeEditSelector sponsorTimeCategories"
217219 ref = { this . categoryOptionRef }
218- style = { { color : "inherit" , backgroundColor : "inherit" } }
220+ style = { { color : "inherit" , backgroundColor : "inherit" , borderColor } }
219221 value = { this . state . selectedCategory }
220222 onChange = { ( event ) => this . categorySelectionChange ( event ) } >
221223 { this . getCategoryOptions ( ) }
@@ -240,7 +242,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
240242 < select id = { "sponsorTimeActionTypes" + this . idSuffix }
241243 className = "sponsorTimeEditSelector sponsorTimeActionTypes"
242244 value = { this . state . selectedActionType }
243- style = { { color : "inherit" , backgroundColor : "inherit" } }
245+ style = { { color : "inherit" , backgroundColor : "inherit" , borderColor } }
244246 ref = { this . actionTypeOptionRef }
245247 onChange = { ( e ) => this . actionTypeSelectionChange ( e ) } >
246248 { this . getActionTypeOptions ( sponsorTime ) }
@@ -269,7 +271,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
269271 < div onBlur = { ( ) => this . setState ( { chapterNameSelectorOpen : false } ) } >
270272 < input id = { "chapterName" + this . idSuffix }
271273 className = "sponsorTimeEdit sponsorTimeEditInput sponsorChapterNameInput"
272- style = { { color : "inherit" , backgroundColor : "inherit" } }
274+ style = { { color : "inherit" , backgroundColor : "inherit" , borderColor } }
273275 ref = { this . descriptionOptionRef }
274276 type = "text"
275277 value = { this . state . description }
0 commit comments