Closed TillRauch closed 9 months ago
Thanks - <a>
tags oddly don't have a native ability to be disabled.
Looks like we'll have to add the Tailwind equivalent of the CSS:
a.disabled {
pointer-events: none;
cursor: default;
}
And also add tabindex="-1"
on the element itself.
Should be fixed in 1.6.0
When hovering over a disabled button the cursor correctly shows as
not-allowed
. However, when hovering over a disabled button that haslink_type="a"
set, the cursor instead shows aspointer
.This can also be replicated in a plain petal-boilerplate environment:![grafik](https://github.com/petalframework/petal_components/assets/5960259/d3b24834-142e-4848-8aec-6de79d4a30b8)