@@ -61,7 +61,7 @@ function AlertOptionCard({
6161 }
6262 } }
6363 >
64- < Flex gap = "md" align = "start" style = { { cursor : 'pointer' } } >
64+ < Flex gap = "md" align = "center" >
6565 < Container padding = "xs 0 0 0" >
6666 < Radio size = "sm" readOnly checked = { isSelected } tabIndex = { - 1 } />
6767 </ Container >
@@ -91,21 +91,25 @@ export function ScmAlertFrequency({
9191 notificationProps,
9292 onFieldChange,
9393} : ScmAlertFrequencyProps ) {
94+ const isDefaultSelected = alertSetting === RuleAction . DEFAULT_ALERT ;
9495 const isCustomSelected = alertSetting === RuleAction . CUSTOMIZED_ALERTS ;
96+ const isLaterSelected = alertSetting === RuleAction . CREATE_ALERT_LATER ;
9597
9698 return (
9799 < Stack gap = "xl" role = "radiogroup" aria-label = { t ( 'Alert frequency' ) } >
98100 < Stack gap = "lg" >
99101 < AlertOptionCard
100102 label = { t ( 'High priority issues' ) }
101- icon = { < IconWarning legacySize = "16px" /> }
102- isSelected = { alertSetting === RuleAction . DEFAULT_ALERT }
103+ icon = {
104+ < IconWarning size = "md" variant = { isDefaultSelected ? 'accent' : 'secondary' } />
105+ }
106+ isSelected = { isDefaultSelected }
103107 onSelect = { ( ) => onFieldChange ( 'alertSetting' , RuleAction . DEFAULT_ALERT ) }
104108 />
105109
106110 < AlertOptionCard
107111 label = { t ( 'Custom' ) }
108- icon = { < IconFix legacySize = "16px" /> }
112+ icon = { < IconFix size = "md" variant = { isCustomSelected ? 'accent' : 'secondary' } /> }
109113 isSelected = { isCustomSelected }
110114 onSelect = { ( ) => onFieldChange ( 'alertSetting' , RuleAction . CUSTOMIZED_ALERTS ) }
111115 >
@@ -179,8 +183,10 @@ export function ScmAlertFrequency({
179183
180184 < AlertOptionCard
181185 label = { t ( "I'll create my own alerts later" ) }
182- icon = { < IconClock legacySize = "16px" /> }
183- isSelected = { alertSetting === RuleAction . CREATE_ALERT_LATER }
186+ icon = {
187+ < IconClock size = "md" variant = { isLaterSelected ? 'accent' : 'secondary' } />
188+ }
189+ isSelected = { isLaterSelected }
184190 onSelect = { ( ) => onFieldChange ( 'alertSetting' , RuleAction . CREATE_ALERT_LATER ) }
185191 />
186192 </ Stack >
0 commit comments