Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Add optional title and desc elements to victory-label #241

Merged
merged 1 commit into from
May 9, 2017

Conversation

sto3psl
Copy link
Contributor

@sto3psl sto3psl commented May 9, 2017

For accessibility reason it would be nice to add <title> and <desc> tags to victory-label. This is helpful, for example, if the normal label text is truncated (for space reasons) and one wants to provide the full title in a browser tooltip.

This PR adds title and desc props to victory-label. They are optional and render their respective SVG tags only when provided. There is also an example added in the demo/ folder.

@boygirl
Copy link
Contributor

boygirl commented May 9, 2017

@sto3psl thanks for this work!

@boygirl boygirl merged commit 8fe4e0d into FormidableLabs:master May 9, 2017
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.

2 participants