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

feat(link): add disabled link #566

Merged
merged 2 commits into from
Feb 15, 2018

Conversation

tw15egan
Copy link
Member

Disabled Links

We were surfacing disabled links on our website, but didn't actually have anything defined in code. Added styles as well as a11y suggestions from @elizabethsjudd

screen shot 2018-02-14 at 10 55 35 am

@@ -1 +1,2 @@
<a href="#" class="bx--link">Link</a>
<a href="#" class="bx--link" tabindex="-1" aria-disabled="true" disabled>Link</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disabled is not a valid attribute for an <a> element, only aria-disabled should be used.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, was just using it to target it via css, but figured I can use &[aria-disabled="true"] instead

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks @tw15egan! 👍

@tw15egan tw15egan merged commit cbc5670 into carbon-design-system:master Feb 15, 2018
joshblack pushed a commit to joshblack/carbon that referenced this pull request May 2, 2019
joshblack pushed a commit to joshblack/carbon that referenced this pull request May 2, 2019
…arbon-design-system#597)

* fix(NumberInput): cope with user events being referred in async code

Fixes carbon-design-system#566.

* fix(NumberInput): set <input> as an imaginary target of events being fired
@tw15egan tw15egan deleted the disabled-links branch April 28, 2021 18:17
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

Successfully merging this pull request may close these issues.

3 participants