change icon to "X" for the exit button of feature type selection panel (#10733)

This commit is contained in:
Youssef Ahmed Hassan Elzedy
2025-02-05 15:19:18 +02:00
committed by GitHub
parent 0dfbdee726
commit afd6b83edf

View File

@@ -37,14 +37,12 @@ export function uiPresetList(context) {
.append('h2')
.call(t.append('inspector.choose'));
var direction = (localizer.textDirection() === 'rtl') ? 'backward' : 'forward';
messagewrap
.append('button')
.attr('class', 'preset-choose')
.attr('title', _entityIDs.length === 1 ? t('inspector.edit') : t('inspector.edit_features'))
.on('click', function() { dispatch.call('cancel', this); })
.call(svgIcon(`#iD-icon-${direction}`));
.call(svgIcon('#iD-icon-close'));
function initialKeydown(d3_event) {
// hack to let delete shortcut work when search is autofocused