Skip to main content

#122 voting button - tooltip not displaying

Posted in ‘NorrCompetition’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information (available for public)

PHP version
n/a

Latest post by sulpher on Sunday, 21 July 2024 21:34 EEST

butterworth191

When I hover over the voting button, the tooltip does not display correctly and simply displays a blank box.  I am fairly sure that this is a template issue as when I use the default Joomla cassiopeia template then I get the correct text information from the tooltip.

I am having difficulty in establishing how to create an override to fix the problem as I cannot seem to locate the correct css file.

 

Could you please point me in the right direction as to how I can change the formatting of the tooltip.

 

Thanks 

 

b2z

Hi David,

Every CSS framework (like UIkit, that we use, or Bootstrap) or template has own style for tooltips. The tooltip style by default is inside uikit.css file under /media/com_competition/css folder.

What is strange that you have a blank box, like tooltip is opened, but the information is not loading. It could be a JavaScript issue also. Do you have any error in the browser console? Can you share a link to see the issue live?

Kind regards,

Dmitrijs

butterworth191

Hi Dmitrijs

Thanks for the location of the uikit.css file, that at least moves things forward for me.

 

My initial thought was that the text in fact there but maybe white on white.  Have attached a screen shot which shows the symptom.  (missing tooltip.pdf )

There do not appear to be any browser errors and I have tried a couple of different template with the same result.  The only one which appears to operate correctly is the standard Joomla cassiopeia template.

Sending logon details as requested

 

Much appreciate your help

 

Dave

System Task
system
The ticket information has been edited by David Butterworth (butterworth191).

b2z

This style in your template is responsilble for tooltip:

[role=tooltip]:not(.show)
{
display: none;padding: .5em;margin: .5em;background: #ccc;border: 1px solid #6d757e;box-shadow: 0 0 0.5rem rgb(0 0 0 / 80%);z-index: 101;
}

Changing the background to something like #ccc is solving the issue.

Kind regards,

Dmitrijs

sulpher
Hi David,
There is a problem caused by CSS styles of your Climate6 template.
There are the following lines that affects tooltips:

/templates/climate6/css/template.css and lines 512-519:

 a.btn.btn-link.jmodedit:hover + [role=tooltip], .float-end a:hover > [role=tooltip]
{
display: block;position: absolute;
}
[role=tooltip]:not(.show)
{
display: none;padding: .5em;margin: .5em;background: #fff;border: 1px solid #6d757e;box-shadow: 0 0 0.5rem rgb(0 0 0 / 80%);z-index: 101;
}

If you comment or remove these lines, then the tooltip will appear:

2024-07-21-20-49-24

P.S. Oh, Dmitrijs has been already replied. Yes, it's better to change the backgroud colour instead of removing these lines.

Regards,
Eugene

butterworth191

Thanks Dmitrijs

I think that I understand what you say but.......

Could you please help me a little more as to what steps I need to take to fix the problem.  For example Should I create an override or modify the original template ?

 

Thanks

 

Dave

 

b2z

You should find in the template docs how to create custom CSS file and put there this override style:

.uk-tooltip {
  background: #ccc !important;
}

Kind regards,

Dmitrijs

butterworth191

Hi Guys

That indeed was the problem and all now working thanks

Thank you both for your help.  You are a lifesaver :)

 

Dave

sulpher
Hi David, We are glad the problem has been resolved. If you like NorrCompetition, we will be happy if you write a short review at the Joomla Extensions Directory or on TrustPilot.
Do not hesitate to contact us in case of any questions.

Best regards,
NorrNext team
Support information

Support hours: You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+3), but not limited. Our staff is pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days.


Our time: / Your time:

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. We also ask you to remove temporary credentials at your site after the problem is resolved. Thank you.

Support of free extensions is not provided on this forum. Please submit your questions or report issues via Github tracker. See link on the product page.