Flip copy to new button in RTL, and use a class for flipping buttons

This commit is contained in:
Eric Rosenbaum committed 2019-07-25 15:29:10 -04:00
1 parent 8f23093617
commit b0dbe9e323
2 files changed
+5 -14

No files matched your search

+1 -10
View File
@@ -171,16 +171,7 @@ $border-radius: 0.25rem;
margin-bottom: -0.375rem;
}
/* mirror the louder/softer/mute speaker icons when rtl */
[dir="rtl"] .effect-button:nth-of-type(4) img {
transform: scaleX(-1);
}
[dir="rtl"] .effect-button:nth-of-type(5) img {
transform: scaleX(-1);
}
[dir="rtl"] .effect-button:nth-of-type(6) img {
[dir="rtl"] .flip-in-rtl img {
transform: scaleX(-1);
}
+4 -4
View File
@@ -195,7 +195,7 @@ const SoundEditor = props => (
onClick={props.onPaste}
/>
<IconButton
className={styles.toolButton}
className={classNames(styles.toolButton, styles.flipInRtl)}
img={copyToNewIcon}
title={props.intl.formatMessage(messages.copyToNew)}
onClick={props.onCopyToNew}
@@ -265,19 +265,19 @@ const SoundEditor = props => (
onClick={props.onSlower}
/>
<IconButton
className={styles.effectButton}
className={classNames(styles.effectButton, styles.flipInRtl)}
img={louderIcon}
title={<FormattedMessage {...messages.louder} />}
onClick={props.onLouder}
/>
<IconButton
className={styles.effectButton}
className={classNames(styles.effectButton, styles.flipInRtl)}
img={softerIcon}
title={<FormattedMessage {...messages.softer} />}
onClick={props.onSofter}
/>
<IconButton
className={styles.effectButton}
className={classNames(styles.effectButton, styles.flipInRtl)}
img={muteIcon}
title={<FormattedMessage {...messages.mute} />}
onClick={props.onMute}