I'm currently working with existing styles and using the isComboClass()
method to determine whether a style is a combo class:
const isCombo = await style.isComboClass();
if (isCombo) {
console.log('This style is a combo class');
}
However, while the documentation covers how to create combo classes with parent-child relationships, there doesn’t appear to be any built-in method (e.g., getParent()
) to retrieve the parent of an existing combo class.
My current use case involves working with pre-existing styles, so manually tracking parent-child relationships during creation isn’t feasible as a workaround.
Feature request:
It would be incredibly helpful to have a method to programmatically access the parent style of a combo class. This would improve workflows that involve auditing or managing existing design systems with complex style hierarchies.