AndyB Well-known member Apr 16, 2018 #1 I would like to change the color and background for the following tooltip: What is the correct CSS for this element? Thank you.
I would like to change the color and background for the following tooltip: What is the correct CSS for this element? Thank you.
Ozzy47 Well-known member Apr 16, 2018 #2 Have you tried, Appearance > Styles > Default style - Style properties > Tooltips
S S Thomas Well-known member Apr 17, 2018 #4 #js-XFUniqueId4 .tooltip-content No clue when or where these IDs are generated, so might be a chance there is a different ID for you
#js-XFUniqueId4 .tooltip-content No clue when or where these IDs are generated, so might be a chance there is a different ID for you
S S Thomas Well-known member Apr 17, 2018 #5 Nailed it. In /js/xf/core/tooltip.js add right at the beginning of the constructor method: JavaScript: if(content == "Style chooser") options["extraClass"] = "your_custom_class";
Nailed it. In /js/xf/core/tooltip.js add right at the beginning of the constructor method: JavaScript: if(content == "Style chooser") options["extraClass"] = "your_custom_class";
AndyB Well-known member Apr 17, 2018 #6 Got it. Thank you both for your help. CSS: .tooltip-content { color: @xf-linkHoverColor !important; }
Got it. Thank you both for your help. CSS: .tooltip-content { color: @xf-linkHoverColor !important; }