Skip to content
This repository was archived by the owner on Apr 10, 2018. It is now read-only.

re-add text-translate and icon-translate as style props#83

Merged
ansis merged 1 commit intomasterfrom
text-translate
Jul 8, 2014
Merged

re-add text-translate and icon-translate as style props#83
ansis merged 1 commit intomasterfrom
text-translate

Conversation

@ansis
Copy link
Copy Markdown
Contributor

@ansis ansis commented Jul 8, 2014

We should support icon/text translation both during placement and at render time. Render time translation lets us make shifted shadows. Translation during placement is needed for positioning text relative to icons.

This re-adds text-translate and icon-translate as style properties (render time translation). It renames the render translate properties to text-offset and icon-offset. Is there a better name than -offset?

@mourner @kkaefer @nickidlugash

@mourner
Copy link
Copy Markdown
Member

mourner commented Jul 8, 2014

Agreed. -offset sounds good to me.

@mourner
Copy link
Copy Markdown
Member

mourner commented Jul 8, 2014

The only thing that may cause confusion is that text-offset is in ems, while icon-offset is in pixels. But maybe that's not important.

@mourner mourner added this to the v4 milestone Jul 8, 2014
ansis added a commit that referenced this pull request Jul 8, 2014
re-add text-translate and icon-translate as style props
@ansis ansis merged commit 782f37d into master Jul 8, 2014
@mourner mourner deleted the text-translate branch July 8, 2014 23:42
@kkaefer kkaefer mentioned this pull request Jul 9, 2014
@jfirebaugh jfirebaugh mentioned this pull request Oct 13, 2014
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