File tree 1 file changed +11
-2
lines changed
site/src/components/StatusIndicator
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,13 @@ import type { ThemeRole } from "theme/roles";
4
4
5
5
interface StatusIndicatorProps {
6
6
color : ThemeRole ;
7
+ variant ?: "solid" | "outlined" ;
7
8
}
8
9
9
- export const StatusIndicator : FC < StatusIndicatorProps > = ( { color } ) => {
10
+ export const StatusIndicator : FC < StatusIndicatorProps > = ( {
11
+ color,
12
+ variant = "solid" ,
13
+ } ) => {
10
14
const theme = useTheme ( ) ;
11
15
12
16
return (
@@ -15,7 +19,12 @@ export const StatusIndicator: FC<StatusIndicatorProps> = ({ color }) => {
15
19
height : 8 ,
16
20
width : 8 ,
17
21
borderRadius : 4 ,
18
- backgroundColor : theme . roles [ color ] . fill . solid ,
22
+ backgroundColor :
23
+ variant === "solid" ? theme . roles [ color ] . fill . solid : undefined ,
24
+ border :
25
+ variant === "outlined"
26
+ ? `1px solid ${ theme . roles [ color ] . outline } `
27
+ : undefined ,
19
28
} }
20
29
/>
21
30
) ;
You can’t perform that action at this time.
0 commit comments