Opens in a new tab
Add your offcanvas content in here

Bricks Tool Tip

1. Add a CSS class to your logout icon

In Bricks Builder:

  1. Select your Logout icon.
  2. Go to Style → CSS → CSS classes.
  3. Add the class logout-tooltip.

2. Add the tooltip text

With the icon selected, go to Style → Attributes (or the Attributes section in your Bricks version).

Add a custom attribute:

  • Name: data-tooltip
  • Value: Log out

3. Add this CSS

In your centralised custom CSS:

.logout-tooltip {
    position: relative;
}

.logout-tooltip::after {
    content: "Log out" !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background-color: #333;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    width: max-content;
    height: auto;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99999;
}

.logout-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}
.logout-tooltip:hover::after,
.logout-tooltip:focus-visible::after,
.logout-tooltip:focus-within::after {
    opacity: 1;
    visibility: visible;
}