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

LumoUtility.Cursor.POINTER #6956

Open
sveinnetnordic opened this issue Dec 16, 2024 · 2 comments
Open

LumoUtility.Cursor.POINTER #6956

sveinnetnordic opened this issue Dec 16, 2024 · 2 comments
Assignees

Comments

@sveinnetnordic
Copy link

Describe your motivation

I find my shelf setting style cursor: pointer many places. Maybe LumoUtility.Cursor.POINTER and other valid constants could be added?

Describe the solution you'd like

LumoUtility.Cursor.POINTER

Describe alternatives you've considered

No response

Additional context

No response

@StefanPenndorf
Copy link

StefanPenndorf commented Dec 17, 2024

Did you try to set the --lumo-clickable-cursor CSS variable? See https://vaadin.com/docs/latest/styling/lumo/lumo-style-properties/interaction for details.

EDIT: Maybe some more context ;-)

If you're finding yourself setting the property on many places it might be easier to switch the default instead. The default for --lumo-clickable-cursor is default which - according to Vaadins documentation - mimics a "desktop approach". When developing a web application the "web approach" using --lumo-clickable-cursor: pointer in styles.css might be less work.

@sveinnetnordic
Copy link
Author

I don't think changing the default is the way to go. Other cursor could be handy like: crosshair, not-allowed, copy ...
Not a big deal, but feels that LumoUtility.Cursor.* is missing
Sample:
image

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

3 participants