WikiNets icon indicating copy to clipboard operation
WikiNets copied to clipboard

On node hover make text have a filled background Expander.coffee Line 50

Open davidfurlong opened this issue 11 years ago • 5 comments

davidfurlong avatar Feb 26 '14 15:02 davidfurlong

This is a bit complicated by there not being a background color attribute for the svg text element. Perhaps we'll need to create a rectangle behind all the text elements that appears and disappears?

i.e. here

willzeng avatar Mar 02 '14 20:03 willzeng

Is this issue referring to the node text or to toplink-instructions?

Line 50 in Expander.coffee is the latter. That is a span and thus has the css-attribute background-color, which means the change should be fairly straightforward. It might be good for toplink-instructions to have an opaque background anyway to improve legibility.

On 02/03/14 20:19, Will Zeng wrote:

This is a bit complicated by there not being a background color attribute for the svg text element. Perhaps we'll need to create a rectangle behind all the text elements that appears and disappears?

i.e. here


Reply to this email directly or view it on GitHub: https://github.com/willzeng/WikiNets/issues/138#issuecomment-36465265

backens avatar Mar 02 '14 22:03 backens

My bad, I misread this to refer to the node.text svg element. The change to toplink-instructions is easy.

willzeng avatar Mar 03 '14 09:03 willzeng

This is for node.text svg element

davidfurlong avatar Mar 03 '14 22:03 davidfurlong

The other (toplink) has already been given a 0.8 opacity white background on my branch

davidfurlong avatar Mar 03 '14 22:03 davidfurlong