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: document popper positioner z-index #399

Merged
merged 2 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 apps/docs/src/routes/docs/core/components/context-menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ We expose a CSS custom property `--kb-popper-content-transform-origin` which can

### ContextMenu.Content

The popper positioner will copy the same `z-index` as the `ContextMenu.Content`.

| Prop | Description |
| :------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| onOpenAutoFocus | `(event: Event) => void` <br/> Event handler called when focus moves into the component after opening. It can be prevented by calling `event.preventDefault`. |
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/src/routes/docs/core/components/dropdown-menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ We expose a CSS custom property `--kb-menu-content-transform-origin` which can b

### DropdownMenu.Content

The popper positioner will copy the same `z-index` as the `DropdownMenu.Content`.

| Prop | Description |
| :------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| onOpenAutoFocus | `(event: Event) => void` <br/> Event handler called when focus moves into the component after opening. It can be prevented by calling `event.preventDefault`. |
Expand Down
4 changes: 4 additions & 0 deletions apps/docs/src/routes/docs/core/components/hover-card.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ We expose a CSS custom property `--kb-hovercard-content-transform-origin` which
| arrowPadding | `number` <br/> The minimum padding between the arrow and the hovercard corner. |
| overflowPadding | `number` <br/> The minimum padding between the hovercard and the viewport edge. This will be exposed to CSS as `--kb-popper-overflow-padding`. |

### HoverCard.Content

The popper positioner will copy the same `z-index` as the `HoverCard.Content`.

### HoverCard.Trigger

`HoverCard.Trigger` consists of [Link](/docs/core/components/link).
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/src/routes/docs/core/components/menubar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ We expose a CSS custom property `--kb-popper-content-transform-origin` which can

### Menubar.Content

The popper positioner will copy the same `z-index` as the `Menubar.Content`.

| Prop | Description |
| :------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| onOpenAutoFocus | `(event: Event) => void` <br/> Event handler called when focus moves into the component after opening. It can be prevented by calling `event.preventDefault`. |
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/src/routes/docs/core/components/popover.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ We expose a CSS custom property `--kb-popover-content-transform-origin` which ca

### Popover.Content

The popper positioner will copy the same `z-index` as the `Popover.Content`.

| Prop | Description |
| :------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| onOpenAutoFocus | `(event: Event) => void` <br/> Event handler called when focus moves into the component after opening. It can be prevented by calling `event.preventDefault`. |
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/src/routes/docs/core/components/select.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,8 @@ We expose a CSS custom property `--kb-select-content-transform-origin` which can

### Select.Content

The popper positioner will copy the same `z-index` as the `Select.Content`.

| Data attribute | Description |
| :------------- | :-------------------------------- |
| data-expanded | Present when the select is open. |
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/src/routes/docs/core/components/tooltip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ We expose a CSS custom property `--kb-tooltip-content-transform-origin` which ca

### Tooltip.Content

The popper positioner will copy the same `z-index` as the `Tooltip.Content`.

| Prop | Description |
| :------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| onEscapeKeyDown | `(event: KeyboardEvent) => void` <br/> Event handler called when the escape key is down. It can be prevented by calling `event.preventDefault`. |
Expand Down
Loading