Closed mercime closed 7 years ago
Agreed on the implement steps.
I wonder whether we actually need the class though 'bp-tooltip' and couldn't just hook styles to 'data-title' attr?
I would like a very subtle box shadow on the white version, it just helps lift the box off the page & lends visual focus.
Agreed on the implement steps.
Thank you. Will start porting over to bp-nouveau.
I wonder whether we actually need the class though 'bp-tooltip' and couldn't just hook styles to 'data-title' attr?
Can use 'data-title' attr to style. Thinking of expanding simple CSS tooltip to be customizable by themers should they choose to with other styles and JS, especially with touch screens.
I would like a very subtle box shadow on the white version, it just helps lift the box off the page & lends visual focus.
Sure thing.
Oh so you want to provide classes to enable some additional styles - understood.
With those class options lets comment the top of the file just to make it clear they are available, maybe it's obvious though?
With box shadow check the mixins file for available & customizable options.
@mercime you may want to check the adjustment I've made to show all comments link.
Closing this as completed, if we find stray tooltips required we can re-open to add reference.
From BP Trac #7188
Latest codepens with patches for # 1 and # 3 in Trac:
Markup additions to the elements which require additional text information:
class="bp-tooltip"
add to element with the tooltipdata-title="the-text-tip"
aria-label="the-text-info"
- as needed onlyThis CSS-only solution to implement the tooltip usable in all devices can be extended or easily be improved/replaced by themers who could add their own styles plus jQuery or pure JS scripts. Will be adding
max-width
andword-break
to the patch in Trac.To implement this in bp-nouveau:
_bp_tooltips.scss
_bp_animations.scss
_bp_tooltips.scss
tobuddypress.scss
under@section 8.0 - Classes - Messages, Ajax, Widgets, Buttons, Tooltips
?