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

Fixed final styling issues for FileLinkListItem

Andreas Pfohlef3bce6cac6c
diff --git a/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html b/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html
index 2a0673c64a3..e49c72171fd 100644
--- a/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html
+++ b/frontend/src/app/shared/components/file-links/file-link-list-item/file-link-list-item.html
@@ -1,8 +1,8 @@
<spot-tooltip
[disabled]="!disabled"
[alignment]="tooltipAllignment"
- class="spot-list--item-floating-wrapper op-files-tab--file-list-item-floating-wrapper"
- [ngClass]="{ 'op-files-tab--file-list-item-floating-wrapper_disabled': disabled }"
+ class="spot-list--item-floating-wrapper"
+ [ngClass]="{ 'spot-list--item-floating-wrapper_disabled': disabled }"
>
<p
slot="body"
diff --git a/frontend/src/app/spot/styles/sass/components/list.sass b/frontend/src/app/spot/styles/sass/components/list.sass
index 7dd073f9753..2545d5daad0 100644
--- a/frontend/src/app/spot/styles/sass/components/list.sass
+++ b/frontend/src/app/spot/styles/sass/components/list.sass
@@ -38,9 +38,8 @@
&_disabled
&,
&:hover
- color: $spot-color-basic-gray-3
background-color: transparent
- cursor: default
+ cursor: not-allowed
&_active#{&}_disabled
color: $spot-color-basic-gray-3
@@ -53,6 +52,13 @@
position: relative
display: flex
+ &_disabled
+ color: $spot-color-basic-gray-1
+
+ &:hover
+ background: none
+ cursor: not-allowed
+
&-floating-actions
opacity: 0
position: absolute
diff --git a/frontend/src/global_styles/content/work_packages/tabs/_files.sass b/frontend/src/global_styles/content/work_packages/tabs/_files.sass
index de82bad91f6..cf4d4c23aa5 100644
--- a/frontend/src/global_styles/content/work_packages/tabs/_files.sass
+++ b/frontend/src/global_styles/content/work_packages/tabs/_files.sass
@@ -41,9 +41,13 @@
opacity: 0.5
&.disabled
+ color: $spot-color-basic-gray-3
opacity: 0.5
pointer-events: none
+ .op-files-tab--icon
+ color: $spot-color-basic-gray-3
+
&:hover
.op-files-tab--file-list-item-title
text-decoration: underline
@@ -74,11 +78,6 @@
&-floating-actions
padding-right: 0
- &-floating-wrapper
- &_disabled:hover
- background: none
- cursor: not-allowed
-
&-floating-text
@include spot-body-small()