falling-fruit / falling-fruit-web

Mobile-friendly website for Falling Fruit
https://beta.fallingfruit.org
GNU General Public License v3.0
30 stars 7 forks source link

Disable location button when permission is denied #351

Closed ezwelty closed 1 month ago

ezwelty commented 1 year ago

The location tracking button is displayed normally even when location permission has been denied:

image

Once clicked, the location button switches to an X icon:

image

Ideally, it would show as a greyed-out version of the original instead.

wbazant commented 1 month ago

This is current styling:

.hutGOq:enabled {
  cursor: pointer;
}

This CSS looks nice for a disabled location:

.bGLhd:enabled {
  cursor: not-allowed;
  opacity: 0.5;
}

Google Maps has a dedicated icon and a "default" cursor, so maybe do cursor: default instead. Screenshot from 2024-05-26 12-33-36