Hi @krist_wang You can fetch the data at any level from the dialog and pass the value returned to the HTL with a particular class, as the sub-navigation items will also populate on the click event and it is always remain hidden till then.
And based on the class you can have the combination of the various css i.e. display-flex, padding, margin, etc based on the UX business requirement to achieve the above use-case.
Hope this helps!
Thanks