[Replace][Desktop] Rose::Button (#2812)
* replace rose::button in ui/desktop * replace .rose-button in ui/admin acceptance tests * update @iconOnly to @isIconOnly * add required @text arg for isIconOnly btns * re-add title html element * add _button.scss for custom styling * add hover styling over close btn * fix a bug when we hover in dark mode * fix bug in main, hover white should trigger in dark mode * remove &:not(:disabled) on btn close window class * fix merge conflict * fix styling
This commit is contained in:
1 parent
376787fda1
commit
6181df4c69
3 files changed
+36
-17
No files matched your search
@@ -143,7 +143,7 @@ module(
|
|||||||
);
|
);
|
||||||
await visit(urls.usernamePasswordCredential);
|
await visit(urls.usernamePasswordCredential);
|
||||||
assert
|
assert
|
||||||
.dom('.rose-layout-page-actions .rose-button-secondary')
|
.dom('.rose-layout-page-actions .hds-button-secondary')
|
||||||
.doesNotExist();
|
.doesNotExist();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -154,7 +154,7 @@ module(
|
|||||||
);
|
);
|
||||||
await visit(urls.usernameKeyPairCredential);
|
await visit(urls.usernameKeyPairCredential);
|
||||||
assert
|
assert
|
||||||
.dom('.rose-layout-page-actions .rose-button-secondary')
|
.dom('.rose-layout-page-actions .hds-button-secondary')
|
||||||
.doesNotExist();
|
.doesNotExist();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -165,7 +165,7 @@ module(
|
|||||||
);
|
);
|
||||||
await visit(urls.jsonCredential);
|
await visit(urls.jsonCredential);
|
||||||
assert
|
assert
|
||||||
.dom('.rose-layout-page-actions .rose-button-secondary')
|
.dom('.rose-layout-page-actions .hds-button-secondary')
|
||||||
.doesNotExist();
|
.doesNotExist();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
@use 'rose/variables/media';
|
@use 'rose/variables/media';
|
||||||
@use 'rose/utilities/type';
|
@use 'rose/utilities/type';
|
||||||
|
|
||||||
@use 'rose';
|
|
||||||
@use 'notify';
|
@use 'notify';
|
||||||
|
@use 'rose';
|
||||||
|
|
||||||
.rose-layout-centered {
|
.rose-layout-centered {
|
||||||
> .rose-layout-page {
|
> .rose-layout-page {
|
||||||
@@ -123,6 +123,20 @@
|
|||||||
margin: sizing.rems(xs);
|
margin: sizing.rems(xs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button-window-close {
|
||||||
|
&:hover {
|
||||||
|
background: var(--failure);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-window-minimize,
|
||||||
|
.button-window-fullscreen {
|
||||||
|
&:hover {
|
||||||
|
background: var(--white);
|
||||||
|
color: var(--black);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.logotype {
|
.logotype {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -482,4 +496,4 @@
|
|||||||
flex-basis: 100%;
|
flex-basis: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,26 +21,31 @@
|
|||||||
|
|
||||||
<header.utilities as |utilities|>
|
<header.utilities as |utilities|>
|
||||||
{{#if this.showWindowActions}}
|
{{#if this.showWindowActions}}
|
||||||
<Rose::Button
|
<Hds::Button
|
||||||
@iconOnly='x'
|
{{on 'click' this.close}}
|
||||||
@style='warning'
|
|
||||||
class='button-window-close'
|
class='button-window-close'
|
||||||
title={{t 'actions.close'}}
|
title={{t 'actions.close'}}
|
||||||
{{on 'click' this.close}}
|
@text={{t 'actions.close'}}
|
||||||
|
@icon='x'
|
||||||
|
@isIconOnly={{true}}
|
||||||
/>
|
/>
|
||||||
<Rose::Button
|
<Hds::Button
|
||||||
@iconOnly='square'
|
{{on 'click' this.toggleFullScreen}}
|
||||||
@style='secondary'
|
|
||||||
class='button-window-fullscreen'
|
class='button-window-fullscreen'
|
||||||
title={{t 'actions.fullscreen'}}
|
title={{t 'actions.fullscreen'}}
|
||||||
{{on 'click' this.toggleFullScreen}}
|
@text={{t 'actions.fullscreen'}}
|
||||||
|
@icon='square'
|
||||||
|
@isIconOnly={{true}}
|
||||||
|
@color='secondary'
|
||||||
/>
|
/>
|
||||||
<Rose::Button
|
<Hds::Button
|
||||||
@iconOnly='minus'
|
{{on 'click' this.minimize}}
|
||||||
@style='secondary'
|
|
||||||
class='button-window-minimize'
|
class='button-window-minimize'
|
||||||
title={{t 'actions.minimize'}}
|
title={{t 'actions.minimize'}}
|
||||||
{{on 'click' this.minimize}}
|
@text={{t 'actions.minimize'}}
|
||||||
|
@icon='minus'
|
||||||
|
@isIconOnly={{true}}
|
||||||
|
@color='secondary'
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user