Skip to content

[mindmap] how to apply style to all of a branch #920

Closed

Description

@hyansuper

how can I do something like the following so that b1, b11 and b12 are all in color lightgreen?

@startmindmap
<style>
mindmapDiagram {
	b1{
	BackgroundColor lightgreen
	}
}
</style>
+ root
++ b1
+++ b11
+++ b12
++ b2
@endmindmap

Activity

  1. The-Lum commented on Feb 14, 2022

    @The-Lum
    Collaborator

    Hello @hyansuper,

    It is not yet implemented.
    See Wanted features od Defect here:


    But, here is a possible workaround:

    @startmindmap
    + root
    
    <style>
    node {
         BackgroundColor lightgreen
    }
    </style>
    
    ++ b1 
    +++ b11
    +++ b12
    
    'Then goto normal BackgroundColor 
    <style>
    node {
         BackgroundColor #f1f1f1
    }
    </style>
    
    ++ b2
    @endmindmap

    Regards.

  2. The-Lum commented on Jan 19, 2023

    @The-Lum
    Collaborator

    Hi all,

    [This is an Issue Review]
    This is now fixed (from 2022 Summer) with:

    @startmindmap
    <style>
    mindmapDiagram {
      .lg * {
        BackgroundColor lightgreen
      }
    }
    </style>
    + root
    ++ b1 <<lg>>
    +++ b11
    +++ b12
    ++ b2
    @endmindmap

    • Thanks @hyansuper for the report.
    • Thanks PlantUML team for your work.

    Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions