21.02.2023, 13:38
If custom name is empty then object name will be used. This works for me:
Code:
.usermode [data-object-name]:before {
display: none;
position: absolute;
top: -30px;
height: 20px;
line-height: 20px;
left: 0;
background-color: #eee;
padding: 2px 6px;
border-radius: 3px;
}
.usermode [data-object-name]:hover:before {
display: block;
}
.usermode [data-object-name]:before {
content: attr(data-object-name);
}