weird css behavior with buttons #391
Replies: 4 comments 6 replies
-
Please properlynformat your yaml so we can see all the indenting. You will also need to show your css, just the relevant part will be fine. |
Beta Was this translation helpful? Give feedback.
-
I don't see how to paste a screenshot so here is the code from the SVG showing my ids
|
Beta Was this translation helpful? Give feedback.
-
I think I figured out part of it. When you save the SVG, you need all elements visible because "opacity" won't affect them unless you apply " display: inline;" first. for now tap_action on this button is to set the class, eventually it will run a script. The tap_action will set the "heat-button-highlight" element correctly. I am trying to use the hover_action but it never seems to get called, am I using it wrong? The intent is the heat-button-highlight element is shown when the mouse hovers over the button. I commented out the "hover" part of my css so it didn't conflict with the below. here is my yaml
I tried this from the Usage page with no luck.
|
Beta Was this translation helpful? Give feedback.
-
I'm closing this one as 2 weeks has gone by without activity. Fell free to bump it. |
Beta Was this translation helpful? Give feedback.
-
I have a button called heat-button. It is a group of a few elements to make up the button, a background, a highlight and some text. In my start up action, I'm trying to get set a class on the highlight element to set the opacity to 0. It just doesn't respond. As a test I set the element just to heat-button and it is hidden, same for the text. the two elements background and highlight will not respond. I have verified the names are correct in my svg and the correct reference in my yaml code for The floorplan. I have tried for hours and it just does not make sense.
Css
Beta Was this translation helpful? Give feedback.
All reactions