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

[ResourceList] Add data-href to ResourceList.Item wrapper #1054

Merged
merged 3 commits into from Feb 20, 2019

Conversation

lemonmade
Copy link
Member

WHY are these changes introduced?

A resource list item with a URL does not get wrapped in an actual anchor tag in order to prevent having nested links. This is problematic for some stuff we are working on for web where we want to transparently see what URL is being hovered over at any given time (in order to preload that next page).

WHAT is this pull request doing?

This PR adds a data-href around the top-level wrapper for the item, which will be used alongside normal href to find the closest link being hovered over.

@ghost
Copy link

ghost commented Feb 19, 2019

👋 Thanks for opening your first pull request. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. You can also join #polaris on the Shopify Partners Slack.

@BPScott BPScott temporarily deployed to polaris-react-pr-1054 February 19, 2019 14:25 Inactive
Copy link
Contributor

@dleroux dleroux left a comment

Choose a reason for hiding this comment

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

👍

@lemonmade lemonmade merged commit 256e580 into master Feb 20, 2019
@ghost
Copy link

ghost commented Feb 20, 2019

🎉 Thanks for your contribution to Polaris React!

@lemonmade lemonmade deleted the add-data-href branch February 20, 2019 14: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.

None yet

3 participants