File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
site/src/components/FeatureBadge Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ import { FeatureBadge } from "./FeatureBadge";
4
4
const meta : Meta < typeof FeatureBadge > = {
5
5
title : "components/FeatureBadge" ,
6
6
component : FeatureBadge ,
7
+ args : {
8
+ type : "beta" ,
9
+ } ,
7
10
} ;
8
11
9
12
export default meta ;
Original file line number Diff line number Diff line change @@ -17,16 +17,19 @@ const styles = {
17
17
// more types of HTML elements without creating invalid markdown, but we
18
18
// still want the default display behavior to be div-like
19
19
display : "block" ,
20
+
21
+ // Base style assumes that small badges will be the default
22
+ fontSize : "0.75rem" ,
23
+
20
24
maxWidth : "fit-content" ,
21
25
flexShrink : 0 ,
22
- padding : "8px 4px" ,
26
+ padding : "4px 8px" ,
27
+ lineHeight : 1 ,
28
+ whiteSpace : "nowrap" ,
23
29
border : `1px solid ${ theme . palette . divider } ` ,
24
30
color : theme . palette . text . secondary ,
25
31
backgroundColor : theme . palette . background . default ,
26
32
borderRadius : "6px" ,
27
-
28
- // Base style assumes that small badges will be the default
29
- fontSize : "0.75rem" ,
30
33
} ) ,
31
34
32
35
highlighted : ( theme ) => ( {
You can’t perform that action at this time.
0 commit comments