@@ -17,17 +17,10 @@ import { spaceAfterClasses } from "../common/tailwind";
1717import { alertDescendantClasses } from "../TextLink/helpers/twClasses" ;
1818
1919const COLORS : Record < Type , string > = {
20- info : "bg-blue-light border-blue-light-hover lm:border-t-blue-light-hover" ,
21- success : "bg-green-light border-green-light-hover lm:border-t-green-light-hover" ,
22- warning : "bg-orange-light border-orange-light-hover lm:border-t-orange-light-hover" ,
23- critical : "bg-red-light border-red-light-hover lm:border-t-red-light-hover" ,
24- } ;
25-
26- const ACCENT_BORDER : Record < Type , string > = {
27- info : "border-t-blue-normal lm:border-s-blue-normal" ,
28- success : "border-t-green-normal lm:border-s-green-normal" ,
29- warning : "border-t-orange-normal lm:border-s-orange-normal" ,
30- critical : "border-t-red-normal lm:border-s-red-normal" ,
20+ info : "bg-blue-light border border-alert-info" ,
21+ success : "bg-green-light border border-alert-success" ,
22+ warning : "bg-orange-light border border-alert-warning" ,
23+ critical : "bg-red-light border border-alert-critical" ,
3124} ;
3225
3326const ICON_COLOR : Record < Type , string > = {
@@ -131,12 +124,9 @@ const Alert = (props: Props) => {
131124 < div
132125 className = { cx (
133126 "orbit-alert" ,
134- "rounded-150 text-ink-dark font-base text-normal p-300 relative box-border flex w-full border border-t-[3px] leading-normal" ,
135- "lm:border-s-[3px] lm:border-t" ,
136- "tb:rounded-100" ,
127+ "rounded-150 tb:rounded-100 text-ink-dark font-base text-normal p-300 relative box-border flex w-full leading-normal" ,
137128 Boolean ( inlineActions ) && "items-center" ,
138- suppressed ? "bg-cloud-light border-cloud-normal lm:border-t-cloud-normal" : COLORS [ type ] ,
139- ACCENT_BORDER [ type ] ,
129+ suppressed ? "bg-cloud-light" : COLORS [ type ] ,
140130 spaceAfter && spaceAfterClasses [ spaceAfter ] ,
141131 ) }
142132 id = { id }
0 commit comments