Giter Club home page Giter Club logo

Comments (5)

adamkleingit avatar adamkleingit commented on August 16, 2024

Hi,

First of all refer to the styling document which shows the HTML structure
of the tree nodes:
https://angular2-tree.readme.io/docs/styling

You can also look at the source code of tree.component.ts and
tree-node.component.ts to see the existing style.

The tree components' encapsulation mode is set to none, so the easiest
would be to give a class or ID of your own above the tree, and style
everything scoped to that class / ID - then you will override the tree's
style.

On Tue, Sep 27, 2016 at 10:19 PM, carmenbranje [email protected]
wrote:

Whats the best approach to styling the tree?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#63, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA2SSiUs0-tlRLmfTU6KUic5MISial1mks5quWwrgaJpZM4KIDTg
.

from angular-tree-component.

carmenbranje avatar carmenbranje commented on August 16, 2024

One issue I'm having is with the hover states with the nodes.

Since lower level nodes are children of higher level nodes, the hover states remains on, on the parent even when I'm hovering over a child node. So if I have a highlighting (backkground-color) for a node, and I hover over the root and then move down the the next level node, both the root and the child node stays highlighted.

I guess this is more of a css issue than an issue with this component?

from angular-tree-component.

isaacplmann avatar isaacplmann commented on August 16, 2024

Your problem is that you have a css rule like this:

.tree-node:hover { etc. }

when you want a rule like this:

.node-content-wrapper:hover { etc. }

On Sep 28, 2016, at 2:10 PM, carmenbranje [email protected] wrote:

One issue I'm having is with the hover states with the nodes.

Since lower level nodes are children of higher level nodes, the hover states remains on, on the parent even when I'm hovering over a child node. So if I have a highlighting (backkground-color) for a node, and I hover over the root and then move down the the next level node, both the root and the child node stays highlighted.

I guess this is more of a css issue than an issue with this component?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #63 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AA0lQO8hQNc5ErDcLUR-QTqK7Mq37S87ks5quq2WgaJpZM4KIDTg.

from angular-tree-component.

carmenbranje avatar carmenbranje commented on August 16, 2024

I see what you mean, but there's also the chevron to the left of the node-content-wrapper. How could I make the entire "node" background a certain color. I'll have to get the node-content-wrapper and span tags that hold the chevron to expand to take up all the tree-node.

from angular-tree-component.

adamkleingit avatar adamkleingit commented on August 16, 2024

There's actually a PR that adds another wrapper around both.
But it is not backwards compatible.

Since this is at least the second time it's bothering someone, I might
merge it and make a breaking change version

On Wed, Sep 28, 2016 at 9:51 PM, carmenbranje [email protected]
wrote:

I see what you mean, but there's also the chevron to the left of the
node-content-wrapper. How could I make the entire "node" background a
certain color. I'll have to get the node-content-wrapper and span tags that
hold the chevron to expand to take up all the tree-node.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#63 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA2SSnntYrdT6VA6F3YV4UnioJiTJMDtks5qurdFgaJpZM4KIDTg
.

from angular-tree-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.