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

Add build support for :dir() in Polymer 2+ #25

Merged
merged 1 commit into from
Nov 7, 2018
Merged

Add build support for :dir() in Polymer 2+ #25

merged 1 commit into from
Nov 7, 2018

Conversation

dfreedm
Copy link
Member

@dfreedm dfreedm commented Nov 6, 2018

  • CHANGELOG.md has been updated

@dfreedm dfreedm requested review from rictic, sorvell and kevinpschaaf and removed request for sorvell November 7, 2018 19:21
*/

// copied from polymer DirMixin
const HOST_DIR = /:host\(:dir\((ltr|rtl)\)\)/g;
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, so you're transforming a native :dir pseudo-selector into an attribute selector?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, and then Polymer's runtime handles setting the dir attribute on any instance that needed it.

Copy link
Member

@kevinpschaaf kevinpschaaf left a comment

Choose a reason for hiding this comment

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

LGTM

@dfreedm dfreedm merged commit da1e452 into master Nov 7, 2018
@dfreedm dfreedm deleted the shadow-dir branch November 7, 2018 20:50
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