-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add style for disabled anchor elements #1594
Comments
To be consistent with other components, the disabled link should use I do have one concern about this: If there are Vaadin applications out there that use anchors without (@jouni do you have anything to comment here?) |
The disabled state has already been fixed in the Flow component by removing the href attrib: vaadin/flow#11121 |
Also cursor should revert from pointer to default (if that does not already happen automatically when the |
Acceptance criteria:
|
Description
The Anchor component implements the
HasEnabled
interface so it can be disabled, though thedisabled
attribute is not valid fora
elements.To emulate this feature the
Anchor
component will be updated so thehref
attribute is modified when disabled, but it must also have some visual effect so the user understands that the link is not clickable anymore.Current behavior
Nothing happens when the
Anchor
element is disabledExpected behavior
The visual appearance of the link changes when the
Anchor
component is disabledReferences
vaadin/flow#10924
The text was updated successfully, but these errors were encountered: