You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Primary buttons are green and are used to indicate the *primary* action on a page. When you need your buttons to stand out, use `.btn.btn-primary`. You can use it with both button sizes—just add `.btn-primary`.
100
68
@@ -103,7 +71,7 @@ Primary buttons are green and are used to indicate the *primary* action on a pag
Danger buttons are red. They help reiterate that the intended action is important or potentially dangerous (e.g., deleting a repo or transferring ownership). Similar to the primary buttons, just add `.btn-danger`.
109
77
@@ -112,7 +80,7 @@ Danger buttons are red. They help reiterate that the intended action is importan
Use `.btn-large` to increase the padding and border radius of a button. This is useful for prominent calls to action in hero sections.
126
94
127
95
[Type scale utilities](https://styleguide.github.com/primer/utilities/typography/#type-scale-utilities) can be used to alter the font-size if needed. Padding is applied in em's so that it scales proportionally with the font-size.
@@ -146,7 +114,7 @@ Use `.btn-large` with a type scale utility to transform the text to a bigger siz
146
114
147
115
```
148
116
149
-
####Disabled state
117
+
## Disabled state
150
118
151
119
Disable `<button>` elements with the boolean `disabled` attribute and `<a>` elements with the `.disabled` class.
152
120
@@ -172,7 +140,7 @@ Similar styles are applied to primary, danger, and outline buttons:
Make any button full-width by adding `.btn-block`. It adds `width: 100%;`, changes the `display` from `inline-block` to `block`, and centers the button text.
178
146
@@ -181,7 +149,17 @@ Make any button full-width by adding `.btn-block`. It adds `width: 100%;`, chang
Create a button that looks like a link with `.btn-link`. Rather than using an `<a>` to trigger JS, this style on a `<button>` should be used for better accessibility.
155
+
156
+
**The `.btn-link` class is not designed to be used with `.btn`; the overlapping styles are not compatible.**
You can easily append a count to a **small button**. Add the `.with-count` class to the `.btn-sm` and then add the `.social-count` after the button.
187
165
@@ -221,7 +199,7 @@ You can also use the [counter](../../product/components/labels) component within
221
199
</button>
222
200
```
223
201
224
-
####Button groups
202
+
## Button groups
225
203
226
204
Have a hankering for a series of buttons that are attached to one another? Wrap them in a `.BtnGroup` and the buttons will be rounded and spaced automatically.
227
205
@@ -258,7 +236,7 @@ Add `.BtnGroup-form` to `<form>`s within `.BtnGroup`s for proper spacing and rou
258
236
</div>
259
237
```
260
238
261
-
####Hidden text button
239
+
## Hidden text button
262
240
263
241
Use `.hidden-text-expander` to indicate and toggle hidden text.
264
242
@@ -271,7 +249,7 @@ Use `.hidden-text-expander` to indicate and toggle hidden text.
271
249
You can also make the expander appear inline by adding `.inline`.
272
250
273
251
274
-
####Using button styles with the details summary element
252
+
## Using button styles with the details summary element
The following border utilities are meant to used in addition to those within primer-core.
@@ -17,3 +16,22 @@ Top, right, bottom, and left border utilities are can be used responsively to ad
17
16
.border-top-0
18
17
</div>
19
18
```
19
+
20
+
## Border Colors
21
+
22
+
### White border with alpha transparency
23
+
24
+
Use `.border-white-fade` to add a white border with an alpha transparency of 0.15. This is useful when you want a border that is a lighter shade of the background color. Additional border colors are available in [primer-core border utilities](/borders/#border-colors).
0 commit comments