mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
[RTL] pick appropriate class for .field-help-title > h2
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
} from 'd3-selection';
|
||||
|
||||
import marked from 'marked';
|
||||
import { t } from '../util/locale';
|
||||
import { t, textDirection } from '../util/locale';
|
||||
import { svgIcon } from '../svg';
|
||||
import { icon } from './intro/helper';
|
||||
|
||||
@@ -197,7 +197,7 @@ export function uiFieldHelp(context, fieldName) {
|
||||
|
||||
titleEnter
|
||||
.append('h2')
|
||||
.attr('class', 'fl')
|
||||
.attr('class', ((textDirection === 'rtl') ? 'fr' : 'fl'))
|
||||
.text(t('help.field.' + fieldName + '.title'));
|
||||
|
||||
titleEnter
|
||||
|
||||
Reference in New Issue
Block a user