Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SlTree custom expand icons are not visible #2284

Open
bikashghimire opened this issue Nov 26, 2024 · 1 comment
Open

SlTree custom expand icons are not visible #2284

bikashghimire opened this issue Nov 26, 2024 · 1 comment
Labels
bug Things that aren't working right in the library.

Comments

@bikashghimire
Copy link

Describe the bug

When using custom expand and collapse icons, the icons are invisible in the UI. Clicking them does work but nothing is shown.

To Reproduce

Steps to reproduce the behavior:

<SlTreeItem>
  Deciduous
  <SlTreeItem>Birch</SlTreeItem>
  <SlTreeItem>
    Maple
    <SlTreeItem>Field maple</SlTreeItem>
    <SlTreeItem>Red maple</SlTreeItem>
    <SlTreeItem>Sugar maple</SlTreeItem>
  </SlTreeItem>
  <SlTreeItem>Oak</SlTreeItem>
</SlTreeItem>

<SlTreeItem>
  Coniferous
  <SlTreeItem>Cedar</SlTreeItem>
  <SlTreeItem>Pine</SlTreeItem>
  <SlTreeItem>Spruce</SlTreeItem>
</SlTreeItem>

<SlTreeItem>
  Non-trees
  <SlTreeItem>Bamboo</SlTreeItem>
  <SlTreeItem>Cactus</SlTreeItem>
  <SlTreeItem>Fern</SlTreeItem>
</SlTreeItem>
@bikashghimire bikashghimire added the bug Things that aren't working right in the library. label Nov 26, 2024
@akasht2509
Copy link

akasht2509 commented Dec 2, 2024

May be due to slot issue

<sl-tree>
  <sl-tree-item>
    <span slot="expand-icon">
      <sl-icon name="plusIcon"></sl-icon>
    </span>
    item
  </sl-tree-item>
</sl-tree>

https://shoelace.style/getting-started/usage#slots for more details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

No branches or pull requests

2 participants