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

Prevent bubbling from links #36

Merged
merged 2 commits into from Jul 7, 2017
Merged

Conversation

andrewpye
Copy link
Member

Before this PR, clicking a polaris-link (both the link and button variants) would bubble, resulting in unwanted behaviour. To resolve this I've introduced an internal polaris-unstyled-link as per the React implementation, which prevents click propagation, and stopped bubbling on the button link's action handler.

I've also skipped SVG-related tests so we can see at a glance if we have any new test failures.

@andrewpye
Copy link
Member Author

Copy link
Member

@vladucu vladucu left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -18,7 +18,7 @@ moduleForComponent('polaris-icon', 'Integration, Component, polaris icon', {

const iconSelector = 'span.Polaris-Icon';

test('it renders the specified icon correctly', function(assert) {
skip('it renders the specified icon correctly', function(assert) {
Copy link
Member

Choose a reason for hiding this comment

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

👍

@andrewpye andrewpye merged commit 68f9c2b into master Jul 7, 2017
@andrewpye andrewpye deleted the fix/prevent-bubbling-from-links branch July 7, 2017 12:46
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

2 participants