File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
app/frontend/components/domains
energy-savings-application Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -296,13 +296,14 @@ export const ContractorProgramResourcesScreen = observer(function ContractorProg
296296 as = "aside"
297297 w = { { base : '100%' , lg : '280px' } }
298298 flexShrink = { 0 }
299+ overflow = "visible"
299300 role = "navigation"
300301 aria-label = "Resource categories"
301302 id = "main-content"
302303 tabIndex = { - 1 }
303304 bg = "greys.white"
304305 >
305- < VStack align = "stretch" spacing = { 0 } role = "tablist" >
306+ < VStack align = "stretch" spacing = { 0 } role = "tablist" overflow = "visible" >
306307 { SIDEBAR_CATEGORIES . map ( ( category ) => (
307308 < Box
308309 key = { category . key }
@@ -332,6 +333,8 @@ export const ContractorProgramResourcesScreen = observer(function ContractorProg
332333 outline : '3px solid' ,
333334 outlineColor : 'theme.blue' ,
334335 outlineOffset : '2px' ,
336+ zIndex : 1 ,
337+ position : 'relative' ,
335338 } }
336339 _first = { {
337340 borderTop : 'none' ,
Original file line number Diff line number Diff line change @@ -512,7 +512,8 @@ export const ReviewPermitApplicationScreen = observer(() => {
512512 variant = "calloutInverse"
513513 px = { 14 }
514514 onClick = { onTrainingPending }
515- borderColor = "green"
515+ borderColor = "theme.darkGreen"
516+ bg = "theme.lightGreen"
516517 isDisabled = {
517518 hasUnsavedEdits ||
518519 currentPermitApplication ?. status === EPermitApplicationStatus . ineligible ||
@@ -578,7 +579,8 @@ export const ReviewPermitApplicationScreen = observer(() => {
578579 leftIcon = { ! isEditContractor && < ProhibitIcon /> }
579580 px = { 14 }
580581 onClick = { onIneligibleOpen }
581- borderColor = "red"
582+ borderColor = "semantic.errorDark"
583+ bg = "theme.softRose"
582584 >
583585 { ! isEditContractor
584586 ? t ( 'energySavingsApplication.show.inEligible' )
Original file line number Diff line number Diff line change @@ -57,6 +57,13 @@ export const HomeScreenBox = observer(
5757 backgroundColor : 'theme.BlueLight' ,
5858 cursor : isDisabled ? 'not-allowed' : 'pointer' ,
5959 } }
60+ onKeyDown = { ( e : React . KeyboardEvent ) => {
61+ if ( ! isDisabled && ( e . key === 'Enter' || e . key === ' ' ) ) {
62+ e . preventDefault ( ) ;
63+ const link = e . currentTarget . querySelector ( 'a, button' ) as HTMLElement ;
64+ link ?. click ( ) ;
65+ }
66+ } }
6067 { ...rest }
6168 >
6269 { isMarked && < SandboxHeader /> }
You can’t perform that action at this time.
0 commit comments