headings - more appropriate h2's and disclosure h3

This commit is contained in:
Milos Brzakovic (E-Search)
2021-12-01 18:17:19 +01:00
parent e91dc1b4f6
commit 30ef0b80e1
14 changed files with 21 additions and 13 deletions
+7
View File
@@ -81,6 +81,13 @@ h2 {
font-weight: bold;
margin-bottom: 20px;
}
.header h2,
.modal-section h2 {
font-size: 20px;
line-height: 1.25;
font-weight: bold;
margin-bottom: 10px;
}
h3:last-child,
h2:last-child,
+1 -1
View File
@@ -220,7 +220,7 @@ export function uiCommit(context) {
headerTitle
.append('div')
.append('h3')
.append('h2')
.html(t.html('commit.title'));
headerTitle
+1 -1
View File
@@ -65,7 +65,7 @@ export function uiConflicts(context) {
.call(svgIcon('#iD-icon-close'));
headerEnter
.append('h3')
.append('h2')
.html(t.html('save.conflict.header'));
var bodyEnter = selection.selectAll('.body')
+1 -1
View File
@@ -33,7 +33,7 @@ export function uiDataEditor(context) {
.call(svgIcon('#iD-icon-close'));
headerEnter
.append('h3')
.append('h2')
.html(t.html('map_data.title'));
+1
View File
@@ -30,6 +30,7 @@ export function uiDisclosure(context, key, expandedDefault) {
// enter
var hideToggleEnter = hideToggle.enter()
.append('h3')
.append('a')
.attr('role', 'button')
.attr('href', '#')
+2 -2
View File
@@ -58,13 +58,13 @@ export function uiEntityEditor(context) {
.call(svgIcon(_modified ? '#iD-icon-apply' : '#iD-icon-close'));
headerEnter
.append('h3');
.append('h2');
// Update
header = header
.merge(headerEnter);
header.selectAll('h3')
header.selectAll('h2')
.html(_entityIDs.length === 1 ? t.html('inspector.edit') : t.html('inspector.edit_features'));
header.selectAll('.preset-reset')
+1 -1
View File
@@ -33,7 +33,7 @@ export function uiFeatureList(context) {
.attr('class', 'header fillL');
header
.append('h3')
.append('h2')
.html(t.html('inspector.feature_list'));
var searchWrap = selection
+1 -1
View File
@@ -36,7 +36,7 @@ export function uiImproveOsmEditor(context) {
.call(svgIcon('#iD-icon-close'));
headerEnter
.append('h3')
.append('h2')
.html(t.html('QA.improveOSM.title'));
let body = selection.selectAll('.body')
+1 -1
View File
@@ -35,7 +35,7 @@ export function uiKeepRightEditor(context) {
.call(svgIcon('#iD-icon-close'));
headerEnter
.append('h3')
.append('h2')
.html(t.html('QA.keepRight.title'));
+1 -1
View File
@@ -53,7 +53,7 @@ export function uiNoteEditor(context) {
.call(svgIcon('#iD-icon-close'));
headerEnter
.append('h3')
.append('h2')
.html(t.html('note.title'));
+1 -1
View File
@@ -35,7 +35,7 @@ export function uiOsmoseEditor(context) {
.call(svgIcon('#iD-icon-close'));
headerEnter
.append('h3')
.append('h2')
.html(t.html('QA.osmose.title'));
let body = selection.selectAll('.body')
+1 -1
View File
@@ -34,7 +34,7 @@ export function uiPresetList(context) {
.attr('class', 'header fillL');
var message = messagewrap
.append('h3')
.append('h2')
.html(t.html('inspector.choose'));
var direction = (localizer.textDirection() === 'rtl') ? 'backward' : 'forward';
+1 -1
View File
@@ -26,7 +26,7 @@ export function uiShortcuts(context) {
content
.append('div')
.attr('class', 'modal-section')
.append('h3')
.append('h2')
.html(t.html('shortcuts.title'));
fileFetcher.get('shortcuts')
+1 -1
View File
@@ -81,7 +81,7 @@ export function uiSuccess(context) {
.attr('class', 'header fillL');
header
.append('h3')
.append('h2')
.html(t.html('success.just_edited'));
header