Skip to content
Snippets Groups Projects
Commit f201c5fd authored by chrisgarrity's avatar chrisgarrity
Browse files

Don’t reverse all button icons

The ‘back/retry’ button in the connection modal should be reversed, but the others (bluetooth icon, question mark) probably shouldn’t.
parent 4cadc557
Branches
Tags
No related merge requests found
......@@ -315,6 +315,10 @@
[dir="rtl"] .button-icon-left {
margin-left: 0.5rem;
}
/* reverse back arrow icon for RTL, don't reverse other connection icons */
[dir="rtl"] .button-icon-back {
transform: scaleX(-1);
}
......
import {FormattedMessage} from 'react-intl';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import React from 'react';
import Box from '../box/box.jsx';
......@@ -39,7 +40,7 @@ const ErrorStep = props => (
onClick={props.onScanning}
>
<img
className={styles.buttonIconLeft}
className={classNames(styles.buttonIconLeft, styles.buttonIconBack)}
src={backIcon}
/>
<FormattedMessage
......
import {FormattedMessage} from 'react-intl';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import React from 'react';
import Box from '../box/box.jsx';
......@@ -64,7 +65,7 @@ const UnavailableStep = props => (
onClick={props.onScanning}
>
<img
className={styles.buttonIconLeft}
className={classNames(styles.buttonIconLeft, styles.buttonIconBack)}
src={backIcon}
/>
<FormattedMessage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment