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

Modernize polaris-text-style component #496

Merged
merged 4 commits into from
Feb 10, 2020

Conversation

tomnez
Copy link
Contributor

@tomnez tomnez commented Feb 7, 2020

DEV-86

Updates PolarisTextStyle to tagless component, ES6 classes, and angle bracket syntax.

Dummy app:

Screen Shot 2020-02-07 at 12 01 26 PM

@tomnez tomnez self-assigned this Feb 7, 2020
Copy link
Member

@vladucu vladucu left a comment

Choose a reason for hiding this comment

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

Great start, some minor suggestions

addon/components/polaris-text-style.js Show resolved Hide resolved
@@ -6,23 +6,23 @@
component instance once that instance has been created :sadface:
--}}
{{#with (component "wrapper-element"
Copy link
Member

Choose a reason for hiding this comment

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

there's a new element helper provided by ember-element-helper that should clean this up a bit and get rid of using our custom wrapper-element here (check an example here)

@tomnez tomnez requested a review from vladucu February 10, 2020 17:29
Copy link
Member

@vladucu vladucu left a comment

Choose a reason for hiding this comment

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

One minor comment, but otherwise this looks lovely!
🚢

addon/components/polaris-text-style.js Outdated Show resolved Hide resolved
Co-Authored-By: vladucu <vanca.vlad@gmail.com>
@tomnez tomnez merged commit aae5958 into refactor/es6-classes Feb 10, 2020
@tomnez tomnez deleted the refactor/es6-polaris-text-style-DEV-86 branch February 10, 2020 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants