mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
refactor(ui): remove the map stack chip DOM builders
The dock renders the chips from the map source controls' published view, so renderMapStackChips, syncMapStackChips and MAP_STACK_CHIP_CLASS have no callers. Their tests now pin the chip models; the dock test keeps the rendered chips' button type and native enablement.
This commit is contained in:
1 parent
1de4f635ca
commit
0b8cb4f33f
6 files changed
+71
-326
No files matched your search
@@ -127,6 +127,11 @@ test('the map source row renders the published chips and selects through the con
|
||||
);
|
||||
const [bing, esri, osm] = chips;
|
||||
assert.equal(bing.classList.contains('unavailable'), true);
|
||||
assert.equal(
|
||||
bing.disabled,
|
||||
false,
|
||||
'unavailable chips stay keyboard-reachable',
|
||||
);
|
||||
assert.equal(bing.getAttribute('aria-disabled'), 'true');
|
||||
assert.equal(
|
||||
bing.getAttribute('aria-label'),
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
export { createMapSourceControls } from './mapSourceControls.js';
|
||||
export {
|
||||
MAP_STACK_CHIP_CLASS,
|
||||
PRESENTED_MAP_STACK_IDS,
|
||||
mapStackChipModel,
|
||||
mapStackChipModels,
|
||||
renderMapStackChips,
|
||||
syncMapStackChips,
|
||||
} from '../mapStackChips.js';
|
||||
Reference in new issue
Block a user