Skip to content

Commit

Permalink
fix: color mode
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Jan 30, 2025
1 parent d3cacfc commit a7fa7c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/beacon-ui/src/ui/alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Subject, Subscription } from '../../utils/subject'
import { AlertConfig, ConfigurableAlertProps } from '../common'
import PairingAlert from './components/pairing-alert'
import InfoAlert from './components/info-alert'
import { getColorMode } from 'src/utils/colorMode'

let initDone: boolean = false
const show$ = new Subject<boolean>()
Expand Down Expand Up @@ -78,7 +79,7 @@ const AlertRoot = (props: AlertConfig) => {
)
}

return <>{mount && <Alert />}</>
return <div className={`theme__${getColorMode()}`}>{mount && <Alert />} </div>
}

export { openAlert, closeAlert, closeAlerts }

0 comments on commit a7fa7c8

Please sign in to comment.