Skip to content

Commit 0fa0964

Browse files
committed
fix: class properties incorrectly inherited to children
1 parent f74e7e1 commit 0fa0964

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/uikit/src/components/classes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ClassList {
2828
const classRef = classes[classIndex]
2929
let resolvedClass = classRef == null ? undefined : this.resolveClassRef(classRef)
3030
this.properties.setLayersWithConditionals(identifier, resolvedClass)
31-
this.starProperties.setLayersWithConditionals(identifier, resolvedClass)
31+
this.starProperties.setLayersWithConditionals(identifier, getStarProperties(resolvedClass))
3232
}
3333
}
3434

packages/uikit/src/properties/layer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export function getLayerIndex(identifier: LayerIdentifier) {
4848
if (identifier.type === 'star-inheritance') {
4949
return LayersSectionSize * 12
5050
}
51+
//inheritance
5152
return LayersSectionSize * 12 + 1
5253
}
5354
const sectionStartIndex = SectionStartIndexMap[identifier.section]

0 commit comments

Comments
 (0)