x
1
<span title="State" data-view-component="true" class="State">State</span>
1
render(Primer::Beta::State.new(title: title, scheme: scheme, size: size, tag: tag)) { "State" }
No notes provided.
Param | Description | Input |
---|---|---|
— |
|
|
— |
|
|
— |
|
|
— |
|
app/components/primer/beta/state.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* State *//* Default 32px */.state, /* TODO: Deprecate */.State { display: inline-block; padding: 5px var(--control-medium-paddingInline-normal, 12px); font-size: var(--text-body-size-medium, 14px); font-weight: var(--base-text-weight-medium, 500); line-height: var(--control-medium-lineBoxHeight, 20px); text-align: center; white-space: nowrap; border-radius: 2em;}.state, /* TODO: Deprecate */.State,.State--draft { color: var(--color-fg-on-emphasis); background-color: var(--color-neutral-emphasis); border: var(--borderWidth-thin, 1px) solid transparent;}.State--open { color: var(--color-fg-on-emphasis); background-color: var(--color-open-emphasis);}.State--merged { color: var(--color-fg-on-emphasis); background-color: var(--color-done-emphasis);}.State--closed { color: var(--color-fg-on-emphasis); background-color: var(--color-closed-emphasis);}/* Small 24px */.State--small { padding: 0 10px; font-size: var(--text-body-size-small, 12px); line-height: var(--base-size-24, 24px);}.State--small .octicon { width: 1em; /* Ensures different icons don't change State indicator width */ }