Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Map tooltips #1921

Merged
merged 10 commits into from
Sep 14, 2016
Merged

Map tooltips #1921

merged 10 commits into from
Sep 14, 2016

Conversation

gemfarmer
Copy link
Contributor

@gemfarmer gemfarmer commented Sep 14, 2016

Fixes issue(s) #1520

😎 PREVIEW

Changes proposed in this pull request:

  • adds an eiti-tooltip component to be used in conjunction with the <title> element

eiti-tooltip can be used like so: <title is="eiti-tooltip"> and supports desc and alt attributes.

desc: text to be displayed
alt: applied to the aria-label attribute on the tooltip

Enhancement possibility: make tooltips clickable. Add href attribute support

/cc @shawnbot @ericronne

detachdCallback: {value: detached}
}
)
})

Choose a reason for hiding this comment

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

Missing semicolon.

init();

tooltipText.text(function(){
return self.attr('desc');

Choose a reason for hiding this comment

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

'self' is not defined.

@meiqimichelle
Copy link
Contributor

The tooltips aren't working in Ffx. Pulled that out into the existing Ffx bug issue because it might be the same thing. #1748 .

@shawnbot
Copy link
Contributor

shawnbot commented Sep 14, 2016

@gemfarmer this may not work in browsers that don't support Custom Elements v0 natively (basically, everyone except Chrome) because the polyfill we're using doesn't support type extension for SVG elements. 😠

@gemfarmer
Copy link
Contributor Author

@shawnbot @ericronne @meiqimichelle now works on 🔥 🐺

@gemfarmer
Copy link
Contributor Author

gemfarmer commented Sep 14, 2016

Also, the hound warnings are old. The grievances it is voicing are not real. As far as I can tell, at least

@meiqimichelle
Copy link
Contributor

😄 I will review once Federalist builds! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants