Skip to content

feat(popover): add guidelines and code for popover#245

Open
alexkaduk wants to merge 15 commits into
developmentfrom
feature/IX-3942-popover
Open

feat(popover): add guidelines and code for popover#245
alexkaduk wants to merge 15 commits into
developmentfrom
feature/IX-3942-popover

Conversation

@alexkaduk

@alexkaduk alexkaduk commented May 31, 2026

Copy link
Copy Markdown
Collaborator

💡 What is the current behavior?

The ix-popover component and its sub-components (ix-popover-header, ix-popover-image, ix-popover-content, ix-popover-footer) are available in iX, but the documentation site has no dedicated popover page. Users cannot find usage guidance, code examples, or API reference for the new component in the components section.

🆕 What is the new behavior?

  • Adds a new Popover component documentation section with Usage and Code tabs
  • Documents composition, options, behavior in context, dos and don’ts, and related components for ix-popover and its sub-components
  • Adds an interactive playground example with structure markup, methods, events, and API reference for all popover-related components
  • Registers the component in the sidebar (between Pill and Toast) and in the components overview page

Files added

File Purpose
docs/components/popover/index.mdx Tab wrapper and component description
docs/components/popover/guide.md Usage guide
docs/components/popover/code.mdx Playground, structure example, methods, events, API

Files updated

File Change
sidebars.ts Adds Popover navigation entry
docs/components/overview.md Adds Popover to the components index
.env.pullrequest Configures artifact download from ix PR 2574 for deploy previews

👨‍💻 Help & support

  • Playground preview and API sections depend on autogenerated content from the ix repo. Ensure ix PR 2574 (or a newer build that includes ix-popover-image and updated preview examples with icon registration) is merged or rebuilt before merging this PR.
  • Related component: Popover news — separate existing docs, not modified in this PR.

Summary by CodeRabbit

Release Notes

  • Documentation
    • Added new Popover component pages, including a full usage guide with recommended composition, slot guidance, and interaction/focus behavior notes.
    • Published Popover API documentation and interactive example content.
    • Updated the components overview and sidebar navigation to include the new Popover documentation set (including Writing and Code pages).
    • Refreshed Popover language guidance to use “infotips” terminology and updated the related documentation link.

@netlify

netlify Bot commented May 31, 2026

Copy link
Copy Markdown

Deploy Preview for industrial-experience ready!

Name Link
🔨 Latest commit eeb30bb
🔍 Latest deploy log https://app.netlify.com/projects/industrial-experience/deploys/6a43a893d2dd29000869d04a
😎 Deploy Preview https://deploy-preview-245--industrial-experience.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds documentation for the new Popover component, including usage guidelines, code examples, and sidebar navigation. The review feedback highlights several style guide violations in the newly added markdown files. Specifically, the feedback advises on avoiding Oxford commas, using contractions like 'don’t', framing instructions as suggestions rather than commands, using 'e.g.' instead of 'for example', and adhering to standard section headings and formatting for options, behaviors, and Dos and Don’ts.

Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/code.mdx Outdated
Comment thread docs/components/popover/code.mdx Outdated
@alexkaduk alexkaduk changed the title fix(popover): add docs IX-3942 feat(popover): add docs IX-3942 Jun 4, 2026
@alexkaduk alexkaduk marked this pull request as ready for review June 5, 2026 14:17
@alexkaduk

Copy link
Copy Markdown
Collaborator Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the documentation for the new Popover component, including its overview, usage guide, code examples, and API references, and registers it in the Docusaurus sidebar. The review feedback highlights several style guide violations in the newly added documentation files, such as incorrect heading hierarchies in the code tab, the use of passive voice instead of active voice, and incorrect pluralization. Additionally, the feedback suggests reordering the sidebar entry alphabetically to maintain consistency with the overview page.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread docs/components/popover/code.mdx Outdated
Comment thread docs/components/popover/code.mdx Outdated
Comment thread docs/components/popover/code.mdx Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/code.mdx Outdated
Comment thread sidebars.ts Outdated
@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/IX-3942-popover

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/components/popover/index.mdx`:
- Line 5: The frontmatter in the Popover component documentation contains an
empty `deprecated:` field that creates inconsistency with the rest of the
documentation, which presents the component as production-ready and fully
supported. Since there are no deprecation notices, migration guidance, or
warnings elsewhere in the documentation, remove the empty `deprecated:` field
from the frontmatter entirely to align the metadata with the actual status of
the component. If the component is actually deprecated, provide a clear value
and add appropriate deprecation guidance to the documentation body instead.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 19819574-9d77-4365-84ca-c02cdeb44c29

📥 Commits

Reviewing files that changed from the base of the PR and between 89b9f46 and f1bed32.

📒 Files selected for processing (6)
  • .env.pullrequest
  • docs/components/overview.md
  • docs/components/popover/code.mdx
  • docs/components/popover/guide.md
  • docs/components/popover/index.mdx
  • sidebars.ts

Comment thread docs/components/popover/index.mdx Outdated
@flxlst09 flxlst09 requested a review from kathrinschalber June 22, 2026 14:41

@kathrinschalber kathrinschalber left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks a lot worse than it is 😉 like it overall!

Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/index.mdx
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md
Comment thread docs/components/popover/guide.md Outdated
@flxlst09 flxlst09 requested a review from kathrinschalber June 25, 2026 11:50
@flxlst09 flxlst09 requested a review from tokyojen June 26, 2026 09:23
Comment thread docs/components/popover/code.mdx Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
Comment thread docs/components/popover/guide.md Outdated
@danielleroux danielleroux changed the title feat(popover): add docs IX-3942 feat(popover): add guidelines and code for popover Jun 30, 2026
@danielleroux danielleroux changed the base branch from main to development June 30, 2026 08:17
Options for `ix-popover-header`, `ix-popover-image`, `ix-popover-content` and `ix-popover-footer` are documented in the [Usage guide](./guide).
<PropsApi />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API for other popover components missing header,content and footer

Comment on lines +17 to +44
```html
<ix-button id="triggerId">Open</ix-button>
<ix-popover trigger="triggerId" placement="bottom" has-spike close-on-click-outside>
<ix-popover-header icon="info">Popover title</ix-popover-header>
<ix-popover-image src="" alt=""></ix-popover-image>
<ix-popover-content>Body text</ix-popover-content>
<ix-popover-footer alignment="vertical">
<span slot="start">v1.0.0</span>
<ix-button variant="secondary">Cancel</ix-button>
<ix-button>Save</ix-button>
</ix-popover-footer>
</ix-popover>
```

- **Popover title** — default slot text of `ix-popover-header` (see example above).
- **`additional-items` slot** — optional content beside the title, e.g. `ix-pill`.
- **`start` slot** on `ix-popover-footer` — optional leading footer content.

Call `hidePopover()` on the parent `ix-popover` to dismiss the popover from custom footer actions:

```js
document.getElementById('popover')?.hidePopover();
```
Use `showPopover()` and `hidePopover()` on the `ix-popover` element to open or close it programmatically.
Options for `ix-popover-header`, `ix-popover-image`, `ix-popover-content` and `ix-popover-footer` are documented in the [Usage guide](./guide).

@danielleroux danielleroux Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Targets mainly native DOM, which is usually not our main audience, also its showcase what already shown in the example above.

Comment on lines +11 to +13
## Basic

<PopoverPlayground height="32rem" />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The combination of header, content and footer, is no "basic" usage of the popover. I would suggest add example usage of popover as a "popover" with custom content and not just a example with the predefined components

- Do use a short title and concise content so users can scan the message quickly
- Don’t use popovers for essential information that must be read before proceeding, use [modals](../modal) instead
- Don’t use popovers for selecting from a list of actions, use [dropdowns](../dropdown) instead
- Don’t allow multiple popovers to be open at the same time, close the current one before opening another

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are nesting popovers also affected by this discussion?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This don't is a separate topic; we had an actual don't for nesting popovers but removed it to keep the list neat and tidy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants