diff --git a/docs/content/components/buttons.md b/docs/content/components/buttons.md index 5252a306..e1909e49 100644 --- a/docs/content/components/buttons.md +++ b/docs/content/components/buttons.md @@ -118,6 +118,17 @@ Create a button that looks like a link with `.btn-link`. Rather than using an `< ``` +## Close button + +When using the `octicon-x` icon for a close button, add `.close-button` to remove the default button styles. + +```html live + +``` + ## Button with counts 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. diff --git a/src/buttons/misc.scss b/src/buttons/misc.scss index 40f7a30d..bb64ea97 100644 --- a/src/buttons/misc.scss +++ b/src/buttons/misc.scss @@ -1,5 +1,13 @@ // stylelint-disable selector-max-type, block-opening-brace-space-before, no-duplicate-selectors +// A button with an X to close stuff +.close-button { + padding: 0; + background: transparent; + border: 0; + outline: none; +} + // Hidden text button // // Use `.hidden-text-expander` to indicate and expand hidden text.