-
Notifications
You must be signed in to change notification settings - Fork 276
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
'<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>' + |
There was a problem hiding this comment.
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>' + |
There was a problem hiding this comment.
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>
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?