When I create a surface and assign it a class the hover defined in CSS is not working. It doesn't seem to get the mouse events. How do I turn them on.
function _createSurface(content,color){
return new Surface({ content: content,
size: [undefined, undefined],
classes:['select-button'],
properties: {
backgroundColor: "rgb(183, 232, 183)",
color: "rgb(51, 51, 51)",
fontSize:'10pt',
textAlign: 'center',
paddingTop:'2pt',
border: '1pt solid rgb(135, 192, 140)'
}
});
}
Below is the class in the css
.select-button:hover {
border-color:rgb(49, 202, 155);
background-color: rgb(171, 237, 195);
}