chore: 🤖 update user profile icon to flight

This commit is contained in:
Randall Morey committed 2021-08-17 16:13:36 -04:00
1 parent dc0e866796
commit 3a1416e2ff
7 files changed
+16 -8

No files matched your search

@@ -27,7 +27,7 @@ A header component that allows three distinct sections to be configured: brand,
<utilities.dropdown
@text="user@example.net"
@iconOnly={{true}}
@icon="user-square-fill" as |dropdown|
@icon="flight/user-circle-16" as |dropdown|
>
<dropdown.link @route="index">Menu item</dropdown.link>
<dropdown.link @route="about">Menu item</dropdown.link>
@@ -69,13 +69,13 @@ A header component that allows three distinct sections to be configured: brand,
dropdownIcon: select(
'dropdownIcon',
{
'user-square-fill': 'user-square-fill',
'flight/user-circle-16': 'flight/user-circle-16',
'check-circle-outline': 'check-circle-outline',
'copy-action': 'copy-action',
'unfold-more': 'unfold-more',
'unfold-less': 'unfold-less',
},
'user-square-fill'
'flight/user-circle-16'
),
},
}}</Story>
@@ -0,0 +1,6 @@
<svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(0.25, 0.25)">
<path d="M7.75 2.75C6.09315 2.75 4.75 4.09315 4.75 5.75C4.75 7.40685 6.09315 8.75 7.75 8.75C9.40685 8.75 10.75 7.40685 10.75 5.75C10.75 4.09315 9.40685 2.75 7.75 2.75ZM6.25 5.75C6.25 4.92157 6.92157 4.25 7.75 4.25C8.57843 4.25 9.25 4.92157 9.25 5.75C9.25 6.57843 8.57843 7.25 7.75 7.25C6.92157 7.25 6.25 6.57843 6.25 5.75Z" fill-rule="EVENODD"></path>
<path d="M0 7.75C0 3.46979 3.46979 0 7.75 0C12.0302 0 15.5 3.46979 15.5 7.75C15.5 12.0302 12.0302 15.5 7.75 15.5C3.46979 15.5 0 12.0302 0 7.75ZM7.75 1.5C4.29822 1.5 1.5 4.29822 1.5 7.75C1.5 8.98445 1.85788 10.1353 2.47556 11.1045C2.62526 10.9098 2.80129 10.735 2.9901 10.5708C3.60506 10.036 4.41927 9.75 5.25 9.75L10.25 9.75C11.0807 9.75 11.8949 10.036 12.5099 10.5708C12.6987 10.735 12.8747 10.9098 13.0244 11.1045C13.6421 10.1353 14 8.98445 14 7.75C14 4.29822 11.2018 1.5 7.75 1.5ZM7.75 14C6.1148 14 4.62626 13.372 3.51241 12.3441C3.54728 12.1476 3.66464 11.972 3.97437 11.7027C4.29709 11.422 4.75465 11.25 5.25 11.25L10.25 11.25C10.7454 11.25 11.2029 11.422 11.5256 11.7027C11.8354 11.972 11.9527 12.1476 11.9876 12.3441C10.8737 13.372 9.3852 14 7.75 14Z" fill-rule="EVENODD"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -19,7 +19,7 @@
<utilities.dropdown
@text="user@example.net"
@iconOnly={{true}}
@icon="user-square-fill" as |dropdown|
@icon="flight/user-circle-16" as |dropdown|
>
<dropdown.link @route="index">Menu item</dropdown.link>
<dropdown.link @route="about">Menu item</dropdown.link>
@@ -24,7 +24,7 @@ module('Integration | Component | rose/dropdown', function (hooks) {
});
test('it supports an icon', async function (assert) {
await render(hbs`<Rose::Dropdown @icon="user-square-fill" />`);
await render(hbs`<Rose::Dropdown @icon="flight/user-circle-16" />`);
assert.ok(find('svg'));
});
@@ -18,7 +18,9 @@ module('Integration | Component | rose/form/radio/radio', function (hooks) {
});
test('it supports an icon', async function (assert) {
await render(hbs`<Rose::Form::Radio::Radio @icon="user-square-fill" />`);
await render(
hbs`<Rose::Form::Radio::Radio @icon="flight/user-circle-16" />`
);
assert.ok(find('svg'));
});
+1 -1
View File
@@ -16,7 +16,7 @@
<header.utilities as |utilities|>
<utilities.dropdown
@text={{this.session.data.authenticated.username}}
@icon='app-icons/user-profile'
@icon='flight/user-circle-16'
as |dropdown|
>
<dropdown.link @route='account.change-password'>
+1 -1
View File
@@ -43,7 +43,7 @@
{{#if this.session.isAuthenticated}}
<utilities.dropdown
@text={{this.session.data.authenticated.username}}
@icon='app-icons/user-profile'
@icon='flight/user-circle-16'
as |dropdown|
>
<dropdown.button {{on 'click' (route-action 'invalidateSession')}}>