mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
fix(UI): invert update banner colors
This commit is contained in:
parent
b2e4ce7261
commit
3ee3cffad9
|
|
@ -6,7 +6,7 @@ import StyledButton, { StyledButtonProps } from './StyledButton'
|
|||
export type AlertProps = React.HTMLAttributes<HTMLDivElement> & {
|
||||
title: string
|
||||
message?: string
|
||||
type: 'warning' | 'error' | 'success' | 'info'
|
||||
type: 'warning' | 'error' | 'success' | 'info' | 'info-inverted'
|
||||
children?: React.ReactNode
|
||||
dismissible?: boolean
|
||||
onDismiss?: () => void
|
||||
|
|
@ -73,6 +73,8 @@ export default function Alert({
|
|||
? 'border-desert-olive'
|
||||
: type === 'info'
|
||||
? 'border-desert-stone'
|
||||
: type === 'info-inverted'
|
||||
? 'border-desert-tan'
|
||||
: ''
|
||||
)
|
||||
return classNames(baseStyles, 'border-2 bg-desert-white shadow-md', ...variantStyles)
|
||||
|
|
@ -86,6 +88,8 @@ export default function Alert({
|
|||
? 'bg-desert-olive text-desert-white border border-desert-olive-dark'
|
||||
: type === 'info'
|
||||
? 'bg-desert-green text-desert-white border border-desert-green-dark'
|
||||
: type === 'info-inverted'
|
||||
? 'bg-desert-tan text-desert-white border border-desert-tan-dark'
|
||||
: ''
|
||||
)
|
||||
return classNames(baseStyles, 'shadow-lg', ...variantStyles)
|
||||
|
|
@ -99,6 +103,8 @@ export default function Alert({
|
|||
? 'bg-desert-olive-lighter bg-opacity-20 border-desert-olive-light'
|
||||
: type === 'info'
|
||||
? 'bg-desert-green bg-opacity-20 border-desert-green-light'
|
||||
: type === 'info-inverted'
|
||||
? 'bg-desert-tan bg-opacity-20 border-desert-tan-light'
|
||||
: ''
|
||||
)
|
||||
return classNames(baseStyles, 'border-l-4 border-y border-r shadow-sm', ...variantStyles)
|
||||
|
|
@ -117,6 +123,8 @@ export default function Alert({
|
|||
return 'text-desert-olive-dark'
|
||||
case 'info':
|
||||
return 'text-desert-stone-dark'
|
||||
case 'info-inverted':
|
||||
return 'text-desert-tan-dark'
|
||||
default:
|
||||
return 'text-desert-stone-dark'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -136,11 +136,11 @@ export default function Home(props: {
|
|||
<div className='flex justify-center items-center p-4 w-full'>
|
||||
<Alert
|
||||
title="An update is available for Project N.O.M.A.D.!"
|
||||
type="info"
|
||||
type="info-inverted"
|
||||
variant="solid"
|
||||
className="w-full"
|
||||
buttonProps={{
|
||||
variant: 'secondary',
|
||||
variant: 'primary',
|
||||
children: 'Go to Settings',
|
||||
icon: 'IconSettings',
|
||||
onClick: () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user