Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(popover): new component usage and style tab content #2459

Merged
merged 39 commits into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
197cc03
fix: update content for design kit
laurenmrice Feb 3, 2021
1a5644f
fix: update content for design kit (#2120)
laurenmrice Feb 3, 2021
5434608
Merge remote-tracking branch 'upstream/main' into main
laurenmrice Mar 23, 2021
ac05826
Merge remote-tracking branch 'upstream/main' into main
laurenmrice Mar 23, 2021
4cb74f8
Merge branch 'main' of https://github.com/carbon-design-system/carbon…
laurenmrice Mar 31, 2021
ea6d459
Merge branch 'main' of https://github.com/carbon-design-system/carbon…
laurenmrice Apr 30, 2021
10fab3b
docs(support-02): update support-02 value (#2288)
tw15egan May 20, 2021
9af1e52
add button variants to live modal preivew (#2299)
dakahn May 21, 2021
6ac8de7
chore(gatsby): remove v3.0 FAST_REFRESH flag (#2336)
emyarod May 21, 2021
6cdce6a
comms: All about Carbon additions, edits, deletions (#2338)
janchild May 21, 2021
a203b58
copy edits to who uses carbon (#2347)
janchild May 24, 2021
7ccb4ee
Merge branch 'main' of https://github.com/carbon-design-system/carbon…
laurenmrice May 24, 2021
51fa3b3
add images
laurenmrice Jul 23, 2021
4acfd4b
add usage docs
laurenmrice Jul 23, 2021
0de0334
add style mdx and images
laurenmrice Jul 23, 2021
79296d6
Merge branch 'main' into popover-docs
laurenmrice Jul 26, 2021
15d13bd
Update src/pages/components/popover/style.mdx
laurenmrice Jul 27, 2021
064f452
Merge branch 'v11' into popover-docs
laurenmrice Aug 2, 2021
1ebded6
fixing carbon-ecosystem file conflict
andreancardona Aug 2, 2021
2b635ed
fix what-is-carbon-file conflict
andreancardona Aug 2, 2021
2242006
fix what-is-carbon file conflict pt.2
andreancardona Aug 2, 2021
e104987
fix overview file merge conflict
andreancardona Aug 2, 2021
da13112
docs(popover): add popover to nav items
andreancardona Aug 2, 2021
b38fcfb
update: content
laurenmrice Aug 5, 2021
0f8125f
update: images
laurenmrice Aug 5, 2021
bcdae84
update: placement and alignment sections
laurenmrice Aug 5, 2021
d3123ed
fix: do images and restructure content
laurenmrice Aug 5, 2021
f9c9d68
update: image test
laurenmrice Aug 5, 2021
3ac28a4
fix: headings
laurenmrice Aug 5, 2021
830eec1
Merge branch 'v11' into popover-docs
laurenmrice Aug 23, 2021
a35e4ee
update: usage content and images
laurenmrice Aug 23, 2021
60670e0
update: style content and images
laurenmrice Aug 23, 2021
92f0e40
add variant anchor links
laurenmrice Aug 23, 2021
c58b556
update interactions section
laurenmrice Aug 23, 2021
733007a
Merge branch 'v11' into popover-docs
laurenmrice Aug 23, 2021
af330cd
update: links
laurenmrice Aug 23, 2021
c2d5808
style: table edit
laurenmrice Aug 23, 2021
1ececcd
Merge branch 'v11' into popover-docs
laurenmrice Aug 31, 2021
9da6b86
Merge branch 'v11' into popover-docs
laurenmrice Sep 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/data/nav-items.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@
path: /components/overflow-menu/usage/
- title: Pagination
path: /components/pagination/usage/
- title: Popover
path: /components/popover/usage/
- title: Progress indicator
path: /components/progress-indicator/usage/
- title: Radio button
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions src/pages/components/popover/style.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: Popover
description:
A popover is a layer that pops up over all other elements on a page.
tabs: ['Usage', 'Style']
---

## Color

| Element | Property | Color token |
| --------- | ---------------- | --------------------- |
| Container | background-color | `$layer-01` |
| | background-color | `$layer-02` |
| | background-color | `$background-inverse` |

<Row>
<Column colLg={8}>

![Popover container colors.](images/popover-style-1.png)

</Column>
</Row>

## Structure

The width and height of a popover container can vary depending on the amount of
content within it. We recommend to not exceed a popover width size of four
columns.

| Element | Property | px / rem | Spacing token |
| --------- | ------------- | -------- | ------------- |
| Container | max-width | 352 / 22 | – |
| | padding | 16 / 1 | `$spacing-05` |
| Caret tip | height, width | 8 / .5 | – |
| | margin-top | 4 / .25 | `$spacing-02` |

<div className="image--fixed">

![Structure and spacing measurements for a popover container.](images/popover-style-3.png)

</div>

<Caption>
Structure and spacing measurements a popover container. | px / rem
</Caption>

<div className="image--fixed">

![Structure and spacing measurements between a popover container and trigger button.](images/popover-style-4.png)

</div>

<Caption>
Structure and spacing measurements between a popover container and trigger
button. | px / rem
</Caption>
Loading