forked from ember-cli/ember-try
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests and documentation to reflect
local-class
usage.
- Loading branch information
Showing
23 changed files
with
74 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/dummy-addon/addon/templates/components/addon-component-with-absolute-imports.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>addon component with absolute imports</div> | ||
<div local-class="component-class" data-test-element>addon component with absolute imports</div> |
2 changes: 1 addition & 1 deletion
2
tests/dummy-addon/addon/templates/components/addon-component-with-relative-imports.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>addon component with relative imports</div> | ||
<div local-class="component-class" data-test-element>addon component with relative imports</div> |
2 changes: 1 addition & 1 deletion
2
tests/dummy-addon/addon/templates/components/addon-component.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>addon component</div> | ||
<div local-class="component-class" data-test-element>addon component</div> |
2 changes: 1 addition & 1 deletion
2
tests/dummy/app/components/component-with-container-class/template.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
{{! Watch for regressions to https://github.com/salsify/ember-css-modules/issues/15 }} | ||
<div class="{{styles.container}}" data-test-element>component with container class</div> | ||
<div local-class="container" data-test-element>component with container class</div> |
3 changes: 3 additions & 0 deletions
3
tests/dummy/app/components/component-with-explicit-styles-reference/styles.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.component-class { | ||
font-family: 'component-with-explicit-styles-reference'; | ||
} |
1 change: 1 addition & 0 deletions
1
tests/dummy/app/components/component-with-explicit-styles-reference/template.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>component with explicit styles reference</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>pod component</div> | ||
<div local-class="component-class" data-test-element>pod component</div> |
2 changes: 1 addition & 1 deletion
2
tests/dummy/app/components/pod-template-only-component/template.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>pod template only component</div> | ||
<div local-class="component-class" data-test-element>pod template only component</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>nested pod component</div> | ||
<div local-class="component-class" data-test-element>nested pod component</div> |
2 changes: 1 addition & 1 deletion
2
tests/dummy/app/pod-route/nested-pod-template-only-component/template.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>nested pod component</div> | ||
<div local-class="component-class" data-test-element>nested pod component</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.route-class}}" data-test-element>pod route</div> | ||
<div local-class="route-class" data-test-element>pod route</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.route-class}}" data-test-element>pod template-only route</div> | ||
<div local-class="route-class" data-test-element>pod template-only route</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>root pod component</div> | ||
<div local-class="component-class" data-test-element>root pod component</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>root pod template-only component</div> | ||
<div local-class="component-class" data-test-element>root pod template-only component</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.route-class}}" data-test-element>classic route</div> | ||
<div local-class="route-class" data-test-element>classic route</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.route-class}}" data-test-element>classic template-only route</div> | ||
<div local-class="route-class" data-test-element>classic template-only route</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>classic component</div> | ||
<div local-class="component-class" data-test-element>classic component</div> |
2 changes: 1 addition & 1 deletion
2
tests/dummy/app/templates/components/classic-template-only-component.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>classic template-only component</div> | ||
<div local-class="component-class" data-test-element>classic template-only component</div> |
2 changes: 1 addition & 1 deletion
2
tests/dummy/app/templates/components/component-with-absolute-imports.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>absolute imports</div> | ||
<div local-class="component-class" data-test-element>absolute imports</div> |
2 changes: 1 addition & 1 deletion
2
tests/dummy/app/templates/components/component-with-relative-imports.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div class="{{styles.component-class}}" data-test-element>relative imports</div> | ||
<div local-class="component-class" data-test-element>relative imports</div> |