Lumo Cursor

How clickable items are indicated to the users of pointer devices (the mouse) is debatable.

You can either follow the “web” approach and use the pointer (hand) cursor for clickable items, or the “desktop” approach and use the default (arrow) cursor.

Clickable Cursor

Use this property for elements that are clickable, such as buttons. That way, an application can decide which mouse cursor to use for them. Traditional web address links (anchors) should always use the pointer cursor (pointing hand).

By default, Lumo uses the default cursor (arrow) for clickable elements.

--lumo-clickable-cursor: default

Examples

HTML

  1. <vaadin-button>Default</vaadin-button>
  2. <vaadin-button class="pointer">Pointer</vaadin-button>
  3. <custom-style>
  4. <style>
  5. .pointer {
  6. --lumo-clickable-cursor: pointer;
  7. cursor: var(--lumo-clickable-cursor);
  8. }
  9. </style>
  10. </custom-style>