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

* Use inline-button style for notification center (#9465)

Henriette Dargeddfd8db66c6d
diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html
index 4c7f519b70a..42badb39af0 100644
--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html
+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html
@@ -10,21 +10,23 @@
</div>
<ul class="toolbar-items">
- <li class="toolbar-item" *ngFor="let facet of facets">
- <button
- type="button"
- class="button"
- [class.-active]="facet === (activeFacet$ | async)"
- (click)="activateFacet(facet)"
- >
- <span
- class="button--text"
- [textContent]="text.facets[facet]"
+
+ <li class="toolbar-item form--field-inline-buttons-container">
+ <ng-container *ngFor="let facet of facets">
+ <button
+ type="button"
+ class="button form--field-inline-button"
+ [class.-active]="facet === (activeFacet$ | async)"
+ (click)="activateFacet(facet)"
>
- </span>
- </button>
+ <span
+ class="button--text"
+ [textContent]="text.facets[facet]"
+ >
+ </span>
+ </button>
+ </ng-container>
</li>
-
<li class="toolbar-item">
<button
type="button"
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index 3ef4eadfb55..cfb657ea3cd 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -831,12 +831,23 @@ input[readonly].-clickable
padding-top: 0.6rem
.form--field-inline-buttons-container
+ white-space: nowrap
.form--field-inline-button
margin-right: 0
+ border: 1px solid var(--button--border-color)
+ border-left-width: 0px
border-radius: 0px
- background: transparent
- height: 30px
- padding: 0 10px
+
+ .toolbar &
+ width: auto
+
+ &:first-of-type
+ border-left-width: 1px
+ border-top-left-radius: 2px
+ border-bottom-left-radius: 2px
+ &:last-of-type
+ border-top-right-radius: 2px
+ border-bottom-right-radius: 2px
.form--list
display: flex
diff --git a/frontend/src/global_styles/openproject/_variables.scss b/frontend/src/global_styles/openproject/_variables.scss
index 677f838a361..280e5ba6d1c 100644
--- a/frontend/src/global_styles/openproject/_variables.scss
+++ b/frontend/src/global_styles/openproject/_variables.scss
@@ -180,7 +180,7 @@
--button--background-color: var(--gray-light);
--button--background-hover-color: #ededed;
--button--border-color: #dddddd;
- --button--active-font-color: #bbbbbb;
+ --button--active-font-color: #666666;
--button--active-background-color: #eeeeee;
--button--active-border-color: #cacaca;
--button--alt-highlight-background-color: var(--alternative-color);