Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Hints to Icons on Hover #1088

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

annikabudean
Copy link

Related issue

#1086 (comment)

Context / Background

Some of the icons in the application did not have a hint when hovered over them while others did. It was unclear what the icons without the hints did until using them more and looking into the overall purpose of the application.

What change is being introduced by this PR?

I saw that some of the other icons (such as the "Go to Current Month" icon) already had a hint when I would hover over it. I found where this was happening in the code and replicated that code to do the same thing for icons that did not have this functionality.
I added a "title" attribute to the HTML code for the icons which provides text when hovered over. This will inform users about what these icons do.

How will this be tested?

  • When running the application, hover over the specified icons (can be seen in the screenshot below) to see if their hint appears
  • Check to make sure the hint correctly describes functionality of the icon

image

Copy link
Collaborator

@tupaschoal tupaschoal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure you revert the changes on package-lock.json

Comment on lines +216 to +223
'<span title="Delete Entry">-</span>' +
'</div>' +
'<i class="arrow left"></i>' +
'<i title="Previous Entry" class="arrow left"></i>' +
'<div class="time-cells" id="' + dateKey + '">' +
'</div>' +
'<i class="arrow right"></i>' +
'<i title="Next Entry" class="arrow right"></i>' +
'<div class="sign-cell plus-sign">' +
'<span>+</span>' +
'<span title="Add Entry">+</span>' +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should not be hardcoded. If there are no equivalent strings on the translation files, they need to be added.

@@ -213,14 +213,14 @@ class FlexibleMonthCalendar extends BaseCalendar
'<img src="../assets/waiver.svg" height="16" class="waiver-img">' +
'</div>' +
'<div class="sign-cell minus-sign">' +
'<span>-</span>' +
'<span title="Delete Entry">-</span>' +
Copy link

@yarrumevets yarrumevets Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might be what you need for "Delete Entry"

<span 
title="${this._getTranslation(
   '$FlexibleMonthCalendar.remove-entry')}"
>-</span>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants