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

Convert all links/link-like-buttons to <LinkButton> #1877

Merged
merged 42 commits into from Sep 26, 2019
Merged

Conversation

corinagum
Copy link
Contributor

@corinagum corinagum commented Sep 20, 2019

#1712, #1806, #1825

image

This PR fixes the roles of all buttons and links that look like links (See above: blue text is our example)

There shouldn't be any visual changes, this is a semantics / tests update. Dialog/explorer links will be the darker blue, while pages will be the default blue.

@tonyanziano, sorry for the ginoromous PR.

@coveralls
Copy link

coveralls commented Sep 20, 2019

Coverage Status

Coverage increased (+0.02%) to 65.931% when pulling cc09000 on corinagum/1825 into 77c4d51 on master.

@tonyanziano
Copy link
Contributor

Coverage also dropped 0.4%. This needs tests, half a percent is pretty huge

@@ -102,4 +117,11 @@ describe('The ConnectServicePromptDialog component should', () => {
instance.props.addServiceManually();
expect(spy).toHaveBeenCalledWith(2);
});

it('should call the appropriate command when onAnchorClick is called', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

async is unnecsesary

@@ -64,4 +71,11 @@ describe('<DataCollectionDialogContainer />', () => {

expect(hideDialogSpy).toHaveBeenCalledWith(true);
});

it('should call the appropriate command when onAnchorClick is called', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

async is unnecessary

@@ -196,4 +200,18 @@ describe('The GetStartedWithCSDialog component should', () => {
const prompt = parent.find(GetStartedWithCSDialog);
expect(prompt.instance().content).toBeNull();
});

it('should call the appropriate command when onAnchorClick is called', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

async is unnecessary

Copy link
Contributor

@tonyanziano tonyanziano left a comment

Choose a reason for hiding this comment

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

Nice!

@tonyanziano tonyanziano merged commit 1c1c498 into master Sep 26, 2019
@tonyanziano tonyanziano deleted the corinagum/1825 branch September 26, 2019 21:33
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.

None yet

3 participants