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

[32649] Increase visibility of toggle buttons in the right wp split screen (#8425)

Inga Maif74ceb8d4e9f
diff --git a/app/assets/stylesheets/content/_attributes_group.lsg b/app/assets/stylesheets/content/_attributes_group.lsg
index f683326af2c..4216c911d03 100644
--- a/app/assets/stylesheets/content/_attributes_group.lsg
+++ b/app/assets/stylesheets/content/_attributes_group.lsg
@@ -137,7 +137,7 @@
<h3 class="attributes-group--header-text">Related To</h3>
</div>
<div class="attributes-group--header-toggle">
- <a href="#" class="button -small -transparent">Group by work package type</a>
+ <a href="#" class="button -small -transparent -with-icon icon-group-by icon-small">Group by work package type</a>
</div>
</div>
<div class="content">
diff --git a/app/assets/stylesheets/content/_attributes_group.sass b/app/assets/stylesheets/content/_attributes_group.sass
index 6d99f71cd78..4876f7be4db 100644
--- a/app/assets/stylesheets/content/_attributes_group.sass
+++ b/app/assets/stylesheets/content/_attributes_group.sass
@@ -59,7 +59,7 @@
overflow-y: hidden
.button
- margin: 0 0 5px 0
+ margin: 0 0 8px 0
// HACK. TODO: Remove H3 element rules in various places.
.attributes-group--header-text,
diff --git a/app/assets/stylesheets/content/_buttons.sass b/app/assets/stylesheets/content/_buttons.sass
index be71dacc1f8..155b1891664 100644
--- a/app/assets/stylesheets/content/_buttons.sass
+++ b/app/assets/stylesheets/content/_buttons.sass
@@ -87,23 +87,18 @@ a.button
&.-transparent
- @include button-style($background: $button--font-color, $style: hollow)
- border-color: transparent
+ background: transparent
- &:hover, &:focus
- @include varprop(border-color, button--border-color)
-
- &.-active
- background: $button--active-background-color
-
- &:hover, &:focus
- border-color: $button--active-border-color
+ &:hover, &:focus, &.-active
+ background: $button--background-hover-color
&.-tiny
@include button-size(tiny)
&.-small
@include button-size(small)
+ &.-with-icon:before
+ vertical-align: initial
&.-large
@include button-size(large)
diff --git a/app/assets/stylesheets/content/work_packages/tabs/_activities.sass b/app/assets/stylesheets/content/work_packages/tabs/_activities.sass
index 2f630c78a57..b134f4e318b 100644
--- a/app/assets/stylesheets/content/work_packages/tabs/_activities.sass
+++ b/app/assets/stylesheets/content/work_packages/tabs/_activities.sass
@@ -77,7 +77,7 @@ h4.comment
.work-package-details-activities-list
list-style-type: none
- margin: 0
+ margin: 35px 0 0 0
// Position first date with comment toggler
.activity-date.-with-toggler
diff --git a/app/assets/stylesheets/content/work_packages/tabs/_relations.sass b/app/assets/stylesheets/content/work_packages/tabs/_relations.sass
index c993d668002..e43bf25ea8c 100644
--- a/app/assets/stylesheets/content/work_packages/tabs/_relations.sass
+++ b/app/assets/stylesheets/content/work_packages/tabs/_relations.sass
@@ -129,10 +129,4 @@
.wp-relations-input-section
margin-right: 10px
- flex: 1
-
-.detail-panel--relations
- .panel-toggler .icon-small
- height: 18px
- display: inline-block
- vertical-align: middle
+ flex: 1
\ No newline at end of file
diff --git a/frontend/src/app/components/wp-relations/wp-relations-group/wp-relations-group.template.html b/frontend/src/app/components/wp-relations/wp-relations-group/wp-relations-group.template.html
index fd8dcbd3b3e..4d622937c01 100644
--- a/frontend/src/app/components/wp-relations/wp-relations-group/wp-relations-group.template.html
+++ b/frontend/src/app/components/wp-relations/wp-relations-group/wp-relations-group.template.html
@@ -7,15 +7,13 @@
</div>
<div class="attributes-group--header-toggle"
*ngIf="firstGroup">
- <div id="wp-relation-group-by-toggle"
- #wpRelationGroupByToggler
- class="panel-toggler ng-scope ng-isolate-scope hide-when-print">
- <accessible-by-keyboard linkClass="button -transparent"
- (execute)="toggleButton()">
- <op-icon icon-classes="icon-small icon-group-by icon4"></op-icon>
- <span [textContent]="togglerText"></span>
- </accessible-by-keyboard>
- </div>
+ <accessible-by-keyboard id="wp-relation-group-by-toggle"
+ #wpRelationGroupByToggler
+ (execute)="toggleButton()"
+ linkClass="button -small -transparent -with-icon icon-group-by icon-small hide-when-print"
+ [linkAriaLabel]="togglerText">
+ <span [textContent]="togglerText"></span>
+ </accessible-by-keyboard>
</div>
</div>
diff --git a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-tab.html b/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-tab.html
index da00c0fa7e1..5fd563818c1 100644
--- a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-tab.html
+++ b/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-tab.html
@@ -10,7 +10,7 @@
<span class="activity-date--label" [textContent]="inf.date"></span>
<accessible-by-keyboard (execute)="toggleComments()"
*ngIf="first && showToggler"
- linkClass="activity-comments--toggler button -small -transparent"
+ linkClass="activity-comments--toggler button -small -transparent -with-icon icon-filter icon-small hide-when-print"
[linkAriaLabel]="togglerText">
<span [textContent]="togglerText"></span>
</accessible-by-keyboard>