Skip to content

Fix(sistent): added ClickAwayListener component documentation#7673

Open
kanishksingh23 wants to merge 2 commits intolayer5io:masterfrom
kanishksingh23:fix/add-click-away-listener-docs
Open

Fix(sistent): added ClickAwayListener component documentation#7673
kanishksingh23 wants to merge 2 commits intolayer5io:masterfrom
kanishksingh23:fix/add-click-away-listener-docs

Conversation

@kanishksingh23
Copy link
Copy Markdown
Contributor

Description

This PR fixes #7668
Added documentation for the ClickAwayListener component to the Sistent components page, including:
index.mdx - Component overview, how it works, and usage
guidance.mdx - Best practices and when to use
code.mdx - Live code examples for basic usage, custom events, and dismissible UI patterns

Notes for Reviewers
Documentation follows the same structure as existing components (Popper, Tooltip, etc.)

Signed commits

  • Yes, I signed my commits.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 29, 2026

🚀 Preview deployment: https://layer5.io/pr-preview/pr-7673/

Note: Preview may take a moment (GitHub Pages deployment in progress). Please wait and refresh. Track deployment here

Copy link
Copy Markdown
Member

@rishiraj38 rishiraj38 left a comment

Choose a reason for hiding this comment

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

Image Why its empty ? Image please fix this .

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please add the imports in the codeBlock

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @rishiraj38, I have addressed both issues in the latest commits. Please let me know if any further changes are needed.

@kanishksingh23
Copy link
Copy Markdown
Contributor Author

@rishiraj38 gentle ping

@kanishksingh23
Copy link
Copy Markdown
Contributor Author

@Rajesh-Nagarajan-11, please review this.

@kanishksingh23 kanishksingh23 requested a review from rishiraj38 May 3, 2026 10:49
@Bhumikagarggg
Copy link
Copy Markdown
Contributor

@kanishksingh23 Thank you for your contribution! Let's discuss this during the website call tomorrow at 5:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂

@kanishksingh23
Copy link
Copy Markdown
Contributor Author

@rishiraj38, gentle ping

/>
</div>

<a id="Custom events">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where is the Example Preview ?

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@rishiraj38, I have added the example previews for the Custom events and Dismissible UI patterns.

</div>

<a id="Dismissible UI patterns">
<h2>Dismissible UI patterns</h2>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same for this where is the example preview please if you have confusion please checkout other components code examples

<p style={{ margin: 0 }}>
This pattern is ideal for keeping a small panel open until the user clicks away.
</p>
<Button variant="outlined" style={{ marginTop: "1rem" }}>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you please explain why this is included in the guidance?

Image

@rishiraj38
Copy link
Copy Markdown
Member

@Rajesh-Nagarajan-11 Thanks For the Preview

@kanishksingh23
Copy link
Copy Markdown
Contributor Author

@rishiraj38, I have addressed all the comments. Please take a look.

Copy link
Copy Markdown
Member

@rishiraj38 rishiraj38 left a comment

Choose a reason for hiding this comment

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

It’s much better now. There’s a small issue in light mode: the box content is visible but not in dark mode. Could you please fix that too?

Image

@kanishksingh23
Copy link
Copy Markdown
Contributor Author

@rishiraj38, done. Please take a look and inform if any changes are there to make.

@rishiraj38
Copy link
Copy Markdown
Member

@rishiraj38, done. Please take a look and inform if any changes are there to make.

The problem persists. Please check the preview.

@kanishksingh23
Copy link
Copy Markdown
Contributor Author

Screenshot 2026-05-06 at 1 38 53 PM Screenshot 2026-05-06 at 1 39 03 PM

@rishiraj38, done

@rishiraj38
Copy link
Copy Markdown
Member

Also fix the overview section component.

@kanishksingh23
Copy link
Copy Markdown
Contributor Author

Hi @rishiraj38, I have fixed the dark mode issue in the overview section as well. Hope this time everything goes well 🙂.

@rishiraj38
Copy link
Copy Markdown
Member

@kanishksingh23 , the problem still persists
Screenshot 2026-05-06 at 2 19 33 PM

@rishiraj38
Copy link
Copy Markdown
Member

This component also doesn’t function as it says. Please check preview after the fix if all these issues are solved then you can tag us for the next review.

Screenshot 2026-05-06 at 2 20 25 PM

@kanishksingh23
Copy link
Copy Markdown
Contributor Author

image image

@rishiraj38, now I think every issue is fixed. Please take a look.

@kanishksingh23 kanishksingh23 requested a review from rishiraj38 May 6, 2026 18:48
@rishiraj38
Copy link
Copy Markdown
Member

One last thing too many commits please squash them

Copy link
Copy Markdown
Member

@rishiraj38 rishiraj38 left a comment

Choose a reason for hiding this comment

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

Looks Good to me.

Signed-off-by: kanishksingh23 <kanishksingh763@gmail.com>
Copy link
Copy Markdown
Member

@rishiraj38 rishiraj38 left a comment

Choose a reason for hiding this comment

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

Conflicts !!!!

@kanishksingh23 kanishksingh23 force-pushed the fix/add-click-away-listener-docs branch from 353bc75 to 9333137 Compare May 6, 2026 19:00
@kanishksingh23
Copy link
Copy Markdown
Contributor Author

Conflicts !!!!

solved

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sistent] Add ClickAwayListener component to the sistent components page

3 participants