From 45fbd5e604ac1405ee699ed755a6f22f4a569a6c Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Fri, 18 Sep 2020 14:33:21 -0400 Subject: [PATCH] Fix some issue with logical focus order (re: #8004) --- css/80_app.css | 7 ++++--- modules/ui/sections/map_features.js | 8 ++++---- modules/ui/sections/validation_rules.js | 8 ++++---- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/css/80_app.css b/css/80_app.css index 323f413dc..6cde02f2c 100644 --- a/css/80_app.css +++ b/css/80_app.css @@ -3264,7 +3264,7 @@ button.autofix.action.active { .autofix-all { display: flex; flex-flow: row nowrap; - flex-direction: row-reverse; + justify-content: flex-end; margin-top: -25px; padding-bottom: 5px; } @@ -3421,7 +3421,7 @@ button.autofix.action.active { .section-footer { display: flex; flex-flow: row nowrap; - flex-direction: row-reverse; + justify-content: flex-end; height: 30px; } .section-footer a { @@ -4220,7 +4220,8 @@ img.tile-debug { ------------------------------------------------------- */ .info-panels { display: flex; - flex-flow: row-reverse wrap-reverse; + flex-flow: row wrap-reverse; + justify-content: flex-end; width: 100%; z-index: 1; -ms-user-select: element; diff --git a/modules/ui/sections/map_features.js b/modules/ui/sections/map_features.js index 2bed5cd18..993ad3102 100644 --- a/modules/ui/sections/map_features.js +++ b/modules/ui/sections/map_features.js @@ -32,18 +32,18 @@ export function uiSectionMapFeatures(context) { .append('a') .attr('class', 'feature-list-link') .attr('href', '#') - .text(t('issues.enable_all')) + .text(t('issues.disable_all')) .on('click', function() { - context.features().enableAll(); + context.features().disableAll(); }); footer .append('a') .attr('class', 'feature-list-link') .attr('href', '#') - .text(t('issues.disable_all')) + .text(t('issues.enable_all')) .on('click', function() { - context.features().disableAll(); + context.features().enableAll(); }); // Update diff --git a/modules/ui/sections/validation_rules.js b/modules/ui/sections/validation_rules.js index feefcbc0e..487de3b33 100644 --- a/modules/ui/sections/validation_rules.js +++ b/modules/ui/sections/validation_rules.js @@ -46,18 +46,18 @@ export function uiSectionValidationRules(context) { .append('a') .attr('class', 'issue-rules-link') .attr('href', '#') - .text(t('issues.enable_all')) + .text(t('issues.disable_all')) .on('click', function() { - context.validator().disableRules([]); + context.validator().disableRules(_ruleKeys); }); ruleLinks .append('a') .attr('class', 'issue-rules-link') .attr('href', '#') - .text(t('issues.disable_all')) + .text(t('issues.enable_all')) .on('click', function() { - context.validator().disableRules(_ruleKeys); + context.validator().disableRules([]); });