Enhancement: customize sidebar items (#14052)

This commit is contained in:
shamoon
2026-09-09 22:00:37 -07:00
committed by GitHub
parent 60709b8319
commit 2d64684043
12 changed files with 339 additions and 22 deletions
@@ -48,4 +48,14 @@ describe('SwitchComponent', () => {
component.value = undefined
expect(component.isUnset).toBeTruthy()
})
it('should support a compact layout', () => {
component.compact = true
component.title = 'Test switch'
fixture.detectChanges()
expect(fixture.nativeElement.querySelector('.mb-3')).toBeNull()
expect(fixture.nativeElement.querySelector('.row')).toBeNull()
expect(input.getAttribute('aria-label')).toEqual('Test switch')
})
})