aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components
diff options
context:
space:
mode:
authorbenal01 <bja4245@rit.edu>2025-03-24 10:38:40 -0400
committerbenal01 <bja4245@rit.edu>2025-03-24 10:38:40 -0400
commit1c1d3922e7eea35764ebab39b18172ed2c8c82d9 (patch)
tree5ea5605edd352634921e644b4a588598a0c5b782 /ufund-ui/src/app/components
parenta05f6f0ab8dead76f937a2d7196fa005af0367fe (diff)
downloadJellySolutions-1c1d3922e7eea35764ebab39b18172ed2c8c82d9.tar.gz
JellySolutions-1c1d3922e7eea35764ebab39b18172ed2c8c82d9.tar.bz2
JellySolutions-1c1d3922e7eea35764ebab39b18172ed2c8c82d9.zip
better feedback using a <span>
Diffstat (limited to 'ufund-ui/src/app/components')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.css8
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.html4
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts8
3 files changed, 13 insertions, 7 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.css b/ufund-ui/src/app/components/need-list/need-list.component.css
index c2b8b90..c42dfda 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.css
+++ b/ufund-ui/src/app/components/need-list/need-list.component.css
@@ -25,10 +25,16 @@ li > button {
justify-content: space-between;
align-items: center;
transition: all 0.3s ease;
+ font-weight: bold;
+}
+
+li > button span {
+ font-style: italic;
+ font-weight: normal;
}
li > button:hover p {
- font-weight: bold;
+ text-decoration: underline;
}
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.html b/ufund-ui/src/app/components/need-list/need-list.component.html
index fc2daa5..741b899 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.html
+++ b/ufund-ui/src/app/components/need-list/need-list.component.html
@@ -13,9 +13,9 @@
<h2 *ngIf="searchResults.length == 0"> No Results Found </h2>
<ul>
- <li *ngFor="let need of searchResults" id="need-button-{{need.id}}" (mouseenter) ="changeText(need.id, need.name + '(Click to view)')" (mouseleave)="changeText(need.id, need.name)" >
+ <li *ngFor="let need of searchResults" id="need-button-{{need.id}}" (mouseenter) ="changeText(need.id, '(details)')" (mouseleave)="changeText(need.id, '')" >
<button [routerLink]="'/need/' + need.id">
- <p id="need-label-{{need.id}}">{{need.name}}</p>
+ <p>{{need.name}}<span id="hover-status-label-{{need.id}}"> </span></p>
<button (click)="delete(need.id)" *ngIf="isManager()">
<img class="icon" src="/delete.png" alt="Delete">
</button>
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.ts b/ufund-ui/src/app/components/need-list/need-list.component.ts
index 8ae7370..0f86921 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.ts
+++ b/ufund-ui/src/app/components/need-list/need-list.component.ts
@@ -79,10 +79,10 @@ export class NeedListComponent {
}
changeText(id : number, text : string) {
- const label = document.getElementById('need-label-' + id);
- if (label) {
- label.innerHTML = text;
- }
+ const span = document.getElementById('hover-status-label-' + id);
+ if (span) {
+ span.innerHTML = ' ' + text;
+ }
}
add(need: Need) {