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

Bugfix/2361 euilink disabled #2423

Merged
merged 7 commits into from
Oct 21, 2019

Conversation

ThomThomson
Copy link
Contributor

@ThomThomson ThomThomson commented Oct 12, 2019

Summary

Fixes #2361

Made the EuiLink component look non-interactive when it is given the disabled prop

Checklist

  • Checked in dark mode
  • Checked in mobile
  • Checked in IE11 and Firefox
  • Props have proper autodocs
  • Added documentation examples
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@elasticcla
Copy link

Hi @ThomThomson, we have found your signature in our records, but it seems like you have signed with a different e-mail than the one used in your Git commit. Can you please add both of these e-mails into your Github profile (they can be hidden), so we can match your e-mails to your Github profile?

@ThomThomson ThomThomson reopened this Oct 12, 2019
@ThomThomson ThomThomson marked this pull request as ready for review October 12, 2019 01:45
@ThomThomson ThomThomson force-pushed the bugfix/2361-euilink-disabled branch from f563672 to f6e1ea3 Compare October 12, 2019 02:51
@thompsongl
Copy link
Contributor

jenkins test this

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

Thanks!

Looks like it satisfies the resolution @cchaos describes in the ticket, but I'll let @snide or another designer verify.

CHANGELOG.md Outdated Show resolved Hide resolved
src/components/link/_link.scss Outdated Show resolved Hide resolved
src/components/link/link.tsx Outdated Show resolved Hide resolved
@ThomThomson ThomThomson force-pushed the bugfix/2361-euilink-disabled branch from 38fd721 to 9e5aa1b Compare October 16, 2019 03:14
Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @ThomThomson !! I have a couple of comments.

src/components/link/_link.scss Outdated Show resolved Hide resolved
src/components/link/link.tsx Outdated Show resolved Hide resolved
src/components/link/_link.scss Outdated Show resolved Hide resolved
src-docs/src/views/link/link_example.js Outdated Show resolved Hide resolved
src-docs/src/views/link/link_example.js Outdated Show resolved Hide resolved
src-docs/src/views/link/link_example.js Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@ThomThomson ThomThomson force-pushed the bugfix/2361-euilink-disabled branch from d58b5ab to 5a8de38 Compare October 17, 2019 01:57
Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning those up. One last thing is that we will need a test created for this new prop. You should be able to copy/paste and follow the same patterns as the other props in the test file. Then you'll need to run yarn run test-unit -u to update the snapshots.

@ThomThomson ThomThomson force-pushed the bugfix/2361-euilink-disabled branch from fb53259 to 57dce9b Compare October 18, 2019 00:49
@cchaos
Copy link
Contributor

cchaos commented Oct 18, 2019

Thanks @ThomThomson. It looks like there's now a conflict from another PR that touched the EuiLink code. Can you fix the conflicts? If you run into trouble, I can try to push you a PR.

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Oh wait nevermind, sorry about that. The conflict was only on my end when I just tried to pull your changes directly without resetting with master.

The new markup looks good to me!

@thompsongl
Copy link
Contributor

jenkins test this

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

Looks like a simple Prettier lint error.

Committing the results of yarn lint-fix will get it resolved and this will be ready to merge

@ThomThomson ThomThomson force-pushed the bugfix/2361-euilink-disabled branch from 395d57f to 6c24df6 Compare October 18, 2019 23:34
@thompsongl
Copy link
Contributor

jenkins test this

@cchaos cchaos merged commit d40b288 into elastic:master Oct 21, 2019
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.

Disabled EuiLink styled like regular EuiLink
5 participants