-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #925 from primer/release-14.0.0
Release 14.0.0
- Loading branch information
Showing
99 changed files
with
15,342 additions
and
8,383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: changelog | ||
on: | ||
push: | ||
branches: | ||
- 'release-*' | ||
- '*changelog*' | ||
jobs: | ||
all: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 11 | ||
- name: install | ||
run: npm install | ||
- name: changelog | ||
run: script/changelog.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- | ||
title: Autocomplete | ||
path: components/autocomplete | ||
status: Stable | ||
source: 'https://github.com/primer/css/tree/master/src/autocomplete' | ||
bundle: autocomplete | ||
--- | ||
|
||
## Autocomplete | ||
|
||
A list of items used to show autocompleted results. Use the [`<auto-complete>`](https://github.com/github/auto-complete-element) element to add functionality. | ||
|
||
```html live | ||
<div class="position-relative"> | ||
<input class="form-control input-block" type="text" aria-label="Search" placeholder="Search"> | ||
<ul class="autocomplete-results"> | ||
<li class="autocomplete-item" aria-selected="true">Option 1</li> | ||
<li class="autocomplete-item">Option 2</li> | ||
<li class="autocomplete-item">Option 3</li> | ||
</ul> | ||
</div> | ||
|
||
<style>.frame-example {width:300px;height:160px;}</style> | ||
``` | ||
|
||
Autocomplete items can contain attional content, like an `.avatar`. Or use utility classes to cusotmize the text style. | ||
|
||
```html live | ||
<div class="position-relative"> | ||
<input class="form-control input-block" type="text" aria-label="Search by user" placeholder="Search by user"> | ||
<ul class="autocomplete-results"> | ||
<li class="autocomplete-item" aria-selected="true"> | ||
<img src="https://github.com/github.png" width="20" class="avatar mr-1" alt=""> | ||
<span>GitHub Inc.</span> | ||
<span class="text-normal">@github</span> | ||
</li> | ||
<li class="autocomplete-item"> | ||
<img src="https://github.com/hubot.png" width="20" class="avatar mr-1" alt=""> | ||
<span>Hubot</span> | ||
<span class="text-normal">@hubot</span> | ||
</li> | ||
<li class="autocomplete-item"> | ||
<img src="https://github.com/octocat.png" width="20" class="avatar mr-1" alt=""> | ||
<span>Monalisa Octocat</span> | ||
<span class="text-normal">@octocat</span> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<style>.frame-example {width:300px;height:160px;}</style> | ||
``` | ||
|
||
## Suggester | ||
|
||
The `.suggester` component is meant for showing suggestions while typing in a larger text area. Use the [`<text-expander>`](https://github.com/github/text-expander-element) element to add functionality. | ||
|
||
```html live | ||
<div class="form-group position-relative"> | ||
<textarea class="form-control width-full" placeholder="Leave a comment" aria-label="Comment body">This is on top of #</textarea> | ||
<ul class="suggester suggester-container" role="listbox" style="top: 4px; left: 125px;"> | ||
<li aria-selected="true"> <small>#924</small> <span>Markdown tables are inaccessible</span> </li> | ||
<li> <small>#980</small> <span>Use actual book emoji in Flexbox docs</span> </li> | ||
<li> <small>#979</small> <span>Add `.radio-group` component</span> </li> | ||
<li> <small>#925</small> <span>Release 14.0.0</span> </li> | ||
<li> <small>#978</small> <span>Add `.css-truncate-overflow`</span> </li> | ||
</ul> | ||
</div> | ||
|
||
<style>.frame-example {height:260px;}</style> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: Loaders | ||
path: components/loaders | ||
status: New | ||
source: 'https://github.com/primer/css/tree/master/src/loaders' | ||
bundle: loaders | ||
--- | ||
|
||
Loaders inform users that an action is still in progress and might take a while to complete. | ||
|
||
## Animated Ellipsis | ||
|
||
Add an animated ellipsis at the end of text with `<span class="AnimatedEllipsis"></span>`. | ||
|
||
```html live | ||
<span>Loading</span><span class="AnimatedEllipsis"></span> | ||
``` | ||
|
||
It can also be used in combination with other components. | ||
|
||
```html live | ||
<h2><span>Loading</span><span class="AnimatedEllipsis"></span></h2> | ||
<span class="branch-name mt-2"><span>Loading</span><span class="AnimatedEllipsis"></span></span><br> | ||
<span class="Label bg-blue mt-3"><span>Loading</span><span class="AnimatedEllipsis"></span></span><br> | ||
<button class="btn mt-3" disabled><span>Loading</span><span class="AnimatedEllipsis"></span></button> | ||
``` |
Oops, something went wrong.
b1d37d1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: