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

Non-clickable card #293

Open
langehm opened this issue Oct 27, 2024 · 2 comments
Open

Non-clickable card #293

langehm opened this issue Oct 27, 2024 · 2 comments
Assignees

Comments

@langehm
Copy link
Contributor

langehm commented Oct 27, 2024

Is your feature request related to a problem? Please describe.
Currently, a muc-card is always clickable. The mouse cursor changes to a pointer.

Describe the solution you'd like
I want a muc-card that is non-interactive as such the mouse cursor does not change and the card acts purely informational.

@langehm
Copy link
Contributor Author

langehm commented Oct 27, 2024

@FabianWilms do you have a preferred method to make the @click property toggleable? - we could use @[computedClick] (tho I don't know if this changes the mouse cursor). In the worst case, this need to be done via CSS.

@langehm langehm self-assigned this Oct 27, 2024
@FabianWilms
Copy link
Member

I actually thought that I already implemented it like this. Thanks for this issue.

You can actually detect wether a component has a listener attached to it. Using this check and attaching the hover-effect of the card to it's own class which is only added when there is a listener attached to the component would be a clean solution.

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

No branches or pull requests

2 participants