Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Make notification rows a div and add focusable icon to open the split view

Henriette Dargec72a5c832c4e
diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sass b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sass
index 105f2feb00b..8cadbb853f9 100644
--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sass
+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.sass
@@ -16,7 +16,7 @@
// While loading, appear to be showing one item row
&--loading-indicator
- height: 90px
+ height: 100px
overflow: hidden // FIXME this shouldn't be necessary with proper svg scaling
:host
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
index 98248a0aedb..af7b39dc8b8 100644
--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
@@ -1,5 +1,4 @@
-<button
- type="button"
+<div
class="op-ian-item--row"
[class.op-ian-item--row_unexpandable]="unexpandable"
(click)="showDetails()"
@@ -54,6 +53,13 @@
data-qa-selector="mark-as-read-button"
class="op-ian-item--button icon-mark-read"
(click)="markAsRead($event, aggregatedNotifications)"
+ tabindex="0"
+ >
+ </i>
+ <i
+ class="op-ian-item--button op-ian-item--button_shown-on-focus icon-info1"
+ (keydown.enter)="showDetails()"
+ tabindex="0"
>
</i>
</div>
@@ -108,4 +114,4 @@
<svg:rect x="0" y="14" width="100%" height="5" rx="1" />
</op-content-loader>
</ng-template>
-</button>
+</div>
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
index 63f658bb868..797d9ed72c2 100644
--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
@@ -28,8 +28,8 @@ $subject-font-size: 14px
&_selected
background: $ian-bg-selected-color
- &_selected:hover
- background: $ian-bg-selected-hover-color
+ &:hover
+ background: $ian-bg-selected-hover-color
&--row
@include unset-button-styles
@@ -112,10 +112,13 @@ $subject-font-size: 14px
&:hover
color: var(--content-link-hover-active-color)
+ &_shown-on-focus
+ @include show-on-focus
+
&--loading
height: 100%
display: block
svg
// Height - padding
- height: calc(#{$ian-height} - 20px)
+ height: calc(#{$ian-height} - 30px)
diff --git a/frontend/src/global_styles/openproject/_mixins.sass b/frontend/src/global_styles/openproject/_mixins.sass
index f44220f6584..a4fe5c898bc 100644
--- a/frontend/src/global_styles/openproject/_mixins.sass
+++ b/frontend/src/global_styles/openproject/_mixins.sass
@@ -265,3 +265,10 @@ $scrollbar-size: 10px
font-weight: bold
background: #00A3FF
color: white
+
+@mixin show-on-focus
+ position: absolute
+ right: -10000px
+
+ &:focus
+ right: 0