Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/frontend/app/components/connection-status.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ export default class ConnectionStatusComponent extends Component {
this.reconnect.perform();
});
<template>
<div class="connection-status{{unless this.isOnline ' offline'}}" aria-hidden={{this.isOnline}}>
<div
class="connection-status critical-notice{{unless this.isOnline ' offline'}}"
aria-hidden={{this.isOnline}}
>
{{#unless this.isOnline}}
{{#if this.unableToReconnect}}
<p class="unable-to-reconnect">
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/app/components/update-notification.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class UpdateNotificationComponent extends Component {
});
<template>
{{#if this.newVersion.isNewVersionAvailable}}
<div class="update-notification" data-test-update-notification>
<div class="update-notification critical-notice" data-test-update-notification>
<button type="button" {{on "click" (perform this.click)}}>
{{t "general.iliosUpdatePending"}}
</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
@use "../ilios-common/mixins" as m;

.connection-status {
@include m.critical-notice(var(--dark-yellow), var(--black), 2.5rem);

display: none;
justify-content: space-between;
align-items: center;
flex-direction: column;

&.critical-notice {
background-color: var(--dark-yellow);
color: var(--black);
min-height: 2.5rem;
}

&.offline {
display: flex;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

.update-notification {
button {
@include m.critical-notice(var(--blue), var(--white), 3rem);
@include m.font-size("large");
}

&.critical-notice {
background-color: var(--blue);

button {
color: var(--white);
min-height: 3rem;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class ApiVersionNoticeComponent extends Component {
});
<template>
<div
class="api-version-notice{{if this.mismatched ' mismatch'}}"
class="api-version-notice critical-notice{{if this.mismatched ' mismatch'}}"
hidden={{not this.mismatched}}
role={{if this.mismatched "alert" false}}
data-test-load-finished={{this.check.lastSuccessful.value}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
@use "../mixins" as m;

.api-version-notice {
@include m.critical-notice(var(--dark-yellow), var(--black), 1rem);

display: none;
padding: 0.25rem 1rem;

&.critical-notice {
background-color: var(--dark-yellow);
color: var(--black);
min-height: 2.5rem;
}

&.mismatch {
display: block;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@forward "mixins/media";
@forward "mixins/collapsed-container";
@forward "mixins/critical-notice";
@forward "mixins/detail-container";
@forward "mixins/font-size";
@forward "mixins/graph-with-data-table";
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@forward "shared/critical-notice";
@forward "shared/data-visualization";
@forward "shared/ilios-removable-table";
@forward "shared/ilios-table";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.critical-notice {
display: block;
margin: 0;
padding: 0;
text-align: center;
width: 100%;
}
Loading