diff --git a/addons/rose/addon/components/rose/header/dropdown.js b/addons/rose/addon/components/rose/header/dropdown.js
index bfc8ec9e1..4a5897084 100644
--- a/addons/rose/addon/components/rose/header/dropdown.js
+++ b/addons/rose/addon/components/rose/header/dropdown.js
@@ -9,7 +9,7 @@ export default Component.extend({
// Uses details widget state to close dropdown
@action
close(element) {
- if(element.open) {
+ if (element.open) {
element.open = false;
}
},
diff --git a/addons/rose/addon/styles/rose/components/_header.scss b/addons/rose/addon/styles/rose/components/_header.scss
index a6970359f..184cd52f2 100644
--- a/addons/rose/addon/styles/rose/components/_header.scss
+++ b/addons/rose/addon/styles/rose/components/_header.scss
@@ -5,8 +5,10 @@
$brand-hashicorp: "data:image/svg+xml;utf-8,";
$dropdown-chevron: (
- 'default': "data:image/svg+xml;utf-8,",
- 'open': "data:image/svg+xml;utf-8,",
+ 'default':
+ "data:image/svg+xml;utf-8,",
+ 'open':
+ "data:image/svg+xml;utf-8,",
);
.rose-header {
@@ -69,7 +71,8 @@ $dropdown-chevron: (
}
}
- .rose-header-navigation, .rose-header-utilities {
+ .rose-header-navigation,
+ .rose-header-utilities {
.rose-header-dropdown {
&[open] {
.rose-header-dropdown-trigger {
@@ -104,7 +107,7 @@ $dropdown-chevron: (
.rose-icon {
position: relative;
- top: - sizing.rems(xxs);
+ top: -sizing.rems(xxs);
}
}
@@ -120,7 +123,7 @@ $dropdown-chevron: (
right: sizing.rems(s);
}
- .rose-header-dropdown-content-link{
+ .rose-header-dropdown-content-link {
padding: sizing.rems(xs) sizing.rems(s);
text-decoration: none;
display: block;
diff --git a/addons/rose/addon/styles/rose/variables/_media.scss b/addons/rose/addon/styles/rose/variables/_media.scss
index d0f695bbf..289c96ad9 100644
--- a/addons/rose/addon/styles/rose/variables/_media.scss
+++ b/addons/rose/addon/styles/rose/variables/_media.scss
@@ -10,7 +10,7 @@ $width-breakpoints: (
large: 1024px,
medium: 768px,
small: 480px,
- xsmall: 320px
+ xsmall: 320px,
);
/**
diff --git a/addons/rose/app/components/rose/header/brand.js b/addons/rose/app/components/rose/header/brand.js
index b21f5e748..edd708f53 100644
--- a/addons/rose/app/components/rose/header/brand.js
+++ b/addons/rose/app/components/rose/header/brand.js
@@ -1 +1 @@
-export { default } from 'rose/components/rose/header/brand';
\ No newline at end of file
+export { default } from 'rose/components/rose/header/brand';
diff --git a/addons/rose/app/components/rose/header/dropdown.js b/addons/rose/app/components/rose/header/dropdown.js
index 689d4487e..16d89ac10 100644
--- a/addons/rose/app/components/rose/header/dropdown.js
+++ b/addons/rose/app/components/rose/header/dropdown.js
@@ -1 +1 @@
-export { default } from 'rose/components/rose/header/dropdown';
\ No newline at end of file
+export { default } from 'rose/components/rose/header/dropdown';
diff --git a/addons/rose/app/components/rose/header/dropdown/content.js b/addons/rose/app/components/rose/header/dropdown/content.js
index 0ef8131da..51792f92e 100644
--- a/addons/rose/app/components/rose/header/dropdown/content.js
+++ b/addons/rose/app/components/rose/header/dropdown/content.js
@@ -1 +1 @@
-export { default } from 'rose/components/rose/header/dropdown/content';
\ No newline at end of file
+export { default } from 'rose/components/rose/header/dropdown/content';
diff --git a/addons/rose/app/components/rose/header/dropdown/content/button.js b/addons/rose/app/components/rose/header/dropdown/content/button.js
index 7576f9dae..cc70f39b5 100644
--- a/addons/rose/app/components/rose/header/dropdown/content/button.js
+++ b/addons/rose/app/components/rose/header/dropdown/content/button.js
@@ -1 +1 @@
-export { default } from 'rose/components/rose/header/dropdown/content/button';
\ No newline at end of file
+export { default } from 'rose/components/rose/header/dropdown/content/button';
diff --git a/addons/rose/app/components/rose/header/dropdown/trigger.js b/addons/rose/app/components/rose/header/dropdown/trigger.js
index ea84a3b44..0bb1491ed 100644
--- a/addons/rose/app/components/rose/header/dropdown/trigger.js
+++ b/addons/rose/app/components/rose/header/dropdown/trigger.js
@@ -1 +1 @@
-export { default } from 'rose/components/rose/header/dropdown/trigger';
\ No newline at end of file
+export { default } from 'rose/components/rose/header/dropdown/trigger';
diff --git a/addons/rose/app/components/rose/header/utilities.js b/addons/rose/app/components/rose/header/utilities.js
index bb5f37bc3..6c4acf7b5 100644
--- a/addons/rose/app/components/rose/header/utilities.js
+++ b/addons/rose/app/components/rose/header/utilities.js
@@ -1 +1 @@
-export { default } from 'rose/components/rose/header/utilities';
\ No newline at end of file
+export { default } from 'rose/components/rose/header/utilities';
diff --git a/addons/rose/tests/integration/components/rose/header/brand-test.js b/addons/rose/tests/integration/components/rose/header/brand-test.js
index 5529aa5a3..e3df6dc9e 100644
--- a/addons/rose/tests/integration/components/rose/header/brand-test.js
+++ b/addons/rose/tests/integration/components/rose/header/brand-test.js
@@ -3,7 +3,7 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
-module('Integration | Component | rose/header/brand', function(hooks) {
+module('Integration | Component | rose/header/brand', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
diff --git a/addons/rose/tests/integration/components/rose/header/dropdown-test.js b/addons/rose/tests/integration/components/rose/header/dropdown-test.js
index 690e5103d..439c29800 100644
--- a/addons/rose/tests/integration/components/rose/header/dropdown-test.js
+++ b/addons/rose/tests/integration/components/rose/header/dropdown-test.js
@@ -3,29 +3,34 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, click, find, findAll } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
-module('Integration | Component | rose/header/dropdown', function(hooks) {
+module('Integration | Component | rose/header/dropdown', function (hooks) {
setupRenderingTest(hooks);
- test('it renders', async function(assert) {
+ test('it renders', async function (assert) {
await render(hbs``);
assert.ok(find('.rose-header-dropdown'));
});
- test('it renders with html attributes', async function(assert) {
- await render(hbs``);
+ test('it renders with html attributes', async function (assert) {
+ await render(
+ hbs``
+ );
assert.ok(find('#custom-id'));
assert.ok(find('.custom-class'));
});
- test('it renders with trigger', async function(assert) {
+ test('it renders with trigger', async function (assert) {
await render(hbs`
Click me
`);
assert.ok(find('.rose-header-dropdown-trigger'));
- assert.equal(find('.rose-header-dropdown-trigger').textContent.trim(), 'Click me');
+ assert.equal(
+ find('.rose-header-dropdown-trigger').textContent.trim(),
+ 'Click me'
+ );
});
- test('it renders with content', async function(assert) {
+ test('it renders with content', async function (assert) {
await render(hbs`
@@ -40,7 +45,7 @@ module('Integration | Component | rose/header/dropdown', function(hooks) {
assert.equal(findAll('button').length, 3);
});
- test('it is toggled on click on trigger content', async function(assert) {
+ test('it is toggled on click on trigger content', async function (assert) {
await render(hbs`
Click me
@@ -56,7 +61,7 @@ module('Integration | Component | rose/header/dropdown', function(hooks) {
assert.notOk(find('#dropdown').open);
});
- test('it is closed with outside click is triggered', async function(assert) {
+ test('it is closed with outside click is triggered', async function (assert) {
await render(hbs`
Click me
diff --git a/addons/rose/tests/integration/components/rose/header/dropdown/content-test.js b/addons/rose/tests/integration/components/rose/header/dropdown/content-test.js
index 26fd3c413..b0bb4a371 100644
--- a/addons/rose/tests/integration/components/rose/header/dropdown/content-test.js
+++ b/addons/rose/tests/integration/components/rose/header/dropdown/content-test.js
@@ -3,36 +3,47 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
-module('Integration | Component | rose/header/dropdown/content', function(hooks) {
+module('Integration | Component | rose/header/dropdown/content', function (
+ hooks
+) {
setupRenderingTest(hooks);
- test('it renders', async function(assert) {
+ test('it renders', async function (assert) {
await render(hbs``);
assert.ok(find('.rose-header-dropdown-content'));
});
- test('it renders with content', async function(assert) {
+ test('it renders with content', async function (assert) {
await render(hbs`
content
`);
- assert.equal(find('.rose-header-dropdown-content').textContent.trim(), 'content');
+ assert.equal(
+ find('.rose-header-dropdown-content').textContent.trim(),
+ 'content'
+ );
});
- test('it renders with html attributes', async function(assert) {
- await render(hbs``);
+ test('it renders with html attributes', async function (assert) {
+ await render(
+ hbs``
+ );
assert.equal(find('.rose-header-dropdown-content').id, 'dropdown-content');
- assert.ok(find('.rose-header-dropdown-content').className.match('universe'));
+ assert.ok(
+ find('.rose-header-dropdown-content').className.match('universe')
+ );
});
- test('it is positioned right when @alignRight={{true}}', async function(assert) {
+ test('it is positioned right when @alignRight={{true}}', async function (assert) {
await render(hbs``);
assert.notOk(find('.rose-header-dropdown-content-right'));
- await render(hbs``);
+ await render(
+ hbs``
+ );
assert.ok(find('.rose-header-dropdown-content-right'));
});
- test('it render link element', async function(assert) {
+ test('it render link element', async function (assert) {
await render(hbs`
`);
@@ -40,14 +51,14 @@ module('Integration | Component | rose/header/dropdown/content', function(hooks)
assert.ok(find('.rose-header-dropdown-content-link'));
});
- test('it render link element with content', async function(assert) {
+ test('it render link element with content', async function (assert) {
await render(hbs`
linkify
`);
assert.equal(find('a').textContent.trim(), 'linkify');
});
- test('it render button element', async function(assert) {
+ test('it render button element', async function (assert) {
await render(hbs`
`);
@@ -55,7 +66,7 @@ module('Integration | Component | rose/header/dropdown/content', function(hooks)
assert.ok(find('.rose-header-dropdown-content-button'));
});
- test('it render button element with content', async function(assert) {
+ test('it render button element with content', async function (assert) {
await render(hbs`
dropdown button
`);
diff --git a/addons/rose/tests/integration/components/rose/header/dropdown/content/button-test.js b/addons/rose/tests/integration/components/rose/header/dropdown/content/button-test.js
index 8ea5783c8..a73dc28df 100644
--- a/addons/rose/tests/integration/components/rose/header/dropdown/content/button-test.js
+++ b/addons/rose/tests/integration/components/rose/header/dropdown/content/button-test.js
@@ -3,22 +3,30 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
-module('Integration | Component | rose/header/dropdown/content/button', function(hooks) {
- setupRenderingTest(hooks);
+module(
+ 'Integration | Component | rose/header/dropdown/content/button',
+ function (hooks) {
+ setupRenderingTest(hooks);
- test('it renders', async function(assert) {
- await render(hbs``);
- assert.ok(find('.rose-header-dropdown-content-button'));
- });
+ test('it renders', async function (assert) {
+ await render(hbs``);
+ assert.ok(find('.rose-header-dropdown-content-button'));
+ });
- test('it renders with content', async function(assert) {
- await render(hbs`Button content`);
- assert.equal(find('.rose-header-dropdown-content-button').textContent.trim(), 'Button content');
- });
+ test('it renders with content', async function (assert) {
+ await render(
+ hbs`Button content`
+ );
+ assert.equal(
+ find('.rose-header-dropdown-content-button').textContent.trim(),
+ 'Button content'
+ );
+ });
- test('it render button element', async function(assert) {
- await render(hbs``);
- assert.ok(find('button'));
- assert.equal(find('button').type, 'button');
- });
-});
+ test('it render button element', async function (assert) {
+ await render(hbs``);
+ assert.ok(find('button'));
+ assert.equal(find('button').type, 'button');
+ });
+ }
+);
diff --git a/addons/rose/tests/integration/components/rose/header/dropdown/trigger-test.js b/addons/rose/tests/integration/components/rose/header/dropdown/trigger-test.js
index aca4e98b3..83309f23e 100644
--- a/addons/rose/tests/integration/components/rose/header/dropdown/trigger-test.js
+++ b/addons/rose/tests/integration/components/rose/header/dropdown/trigger-test.js
@@ -3,29 +3,38 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, find } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
-module('Integration | Component | rose/header/dropdown/trigger', function(hooks) {
+module('Integration | Component | rose/header/dropdown/trigger', function (
+ hooks
+) {
setupRenderingTest(hooks);
- test('it renders', async function(assert) {
+ test('it renders', async function (assert) {
await render(hbs``);
assert.ok(find('.rose-header-dropdown-trigger'));
assert.notOk(find('.rose-header-dropdown-open'));
});
- test('it renders with content', async function(assert) {
+ test('it renders with content', async function (assert) {
await render(hbs`
trigger content
`);
- assert.equal(find('.rose-header-dropdown-trigger').textContent.trim(), 'trigger content');
+ assert.equal(
+ find('.rose-header-dropdown-trigger').textContent.trim(),
+ 'trigger content'
+ );
});
- test('it renders with html attributes', async function(assert) {
- await render(hbs``);
+ test('it renders with html attributes', async function (assert) {
+ await render(
+ hbs``
+ );
assert.equal(find('.rose-header-dropdown-trigger').id, 'trigger');
- assert.ok(find('.rose-header-dropdown-trigger').className.match('dropdown-trigger'));
+ assert.ok(
+ find('.rose-header-dropdown-trigger').className.match('dropdown-trigger')
+ );
});
- test('it renders chevron', async function(assert) {
+ test('it renders chevron', async function (assert) {
await render(hbs``);
assert.ok(find('.rose-header-dropdown-chevron'));
});
diff --git a/addons/rose/tests/integration/components/rose/header/utilities-test.js b/addons/rose/tests/integration/components/rose/header/utilities-test.js
index 56f263714..b0dca161d 100644
--- a/addons/rose/tests/integration/components/rose/header/utilities-test.js
+++ b/addons/rose/tests/integration/components/rose/header/utilities-test.js
@@ -3,7 +3,7 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, find, findAll } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
-module('Integration | Component | rose/header/utilities', function(hooks) {
+module('Integration | Component | rose/header/utilities', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
diff --git a/addons/rose/tests/integration/modifiers/on-click-outside-test.js b/addons/rose/tests/integration/modifiers/on-click-outside-test.js
index 859de9902..7318ef423 100644
--- a/addons/rose/tests/integration/modifiers/on-click-outside-test.js
+++ b/addons/rose/tests/integration/modifiers/on-click-outside-test.js
@@ -3,10 +3,10 @@ import { setupRenderingTest } from 'ember-qunit';
import { render, click } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
-module('Integration | Modifier | on-click-outside', function(hooks) {
+module('Integration | Modifier | on-click-outside', function (hooks) {
setupRenderingTest(hooks);
- test('it fires event when an outside element is clicked', async function(assert) {
+ test('it fires event when an outside element is clicked', async function (assert) {
this.set('clickedOutside', (element, event) => {
assert.ok(element);
assert.equal(event.target.id, 'outside');
@@ -18,9 +18,11 @@ module('Integration | Modifier | on-click-outside', function(hooks) {
await click('#outside');
});
- test('it does not fire event when element is clicked', async function(assert) {
+ test('it does not fire event when element is clicked', async function (assert) {
assert.expect(1);
- this.set('clickedOutside', () => { assert.ok(true)});
+ this.set('clickedOutside', () => {
+ assert.ok(true);
+ });
await render(hbs`