File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed
src/components/sound-editor Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -171,16 +171,7 @@ $border-radius: 0.25rem;
171
171
margin-bottom : -0.375rem ;
172
172
}
173
173
174
- /* mirror the louder/softer/mute speaker icons when rtl */
175
- [dir = "rtl" ] .effect-button : nth-of-type (4 ) img {
176
- transform : scaleX (-1 );
177
- }
178
-
179
- [dir = "rtl" ] .effect-button : nth-of-type (5 ) img {
180
- transform : scaleX (-1 );
181
- }
182
-
183
- [dir = "rtl" ] .effect-button : nth-of-type (6 ) img {
174
+ [dir = "rtl" ] .flip-in-rtl img {
184
175
transform : scaleX (-1 );
185
176
}
186
177
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ const SoundEditor = props => (
195
195
onClick = { props . onPaste }
196
196
/>
197
197
< IconButton
198
- className = { styles . toolButton }
198
+ className = { classNames ( styles . toolButton , styles . flipInRtl ) }
199
199
img = { copyToNewIcon }
200
200
title = { props . intl . formatMessage ( messages . copyToNew ) }
201
201
onClick = { props . onCopyToNew }
@@ -265,19 +265,19 @@ const SoundEditor = props => (
265
265
onClick = { props . onSlower }
266
266
/>
267
267
< IconButton
268
- className = { styles . effectButton }
268
+ className = { classNames ( styles . effectButton , styles . flipInRtl ) }
269
269
img = { louderIcon }
270
270
title = { < FormattedMessage { ...messages . louder } /> }
271
271
onClick = { props . onLouder }
272
272
/>
273
273
< IconButton
274
- className = { styles . effectButton }
274
+ className = { classNames ( styles . effectButton , styles . flipInRtl ) }
275
275
img = { softerIcon }
276
276
title = { < FormattedMessage { ...messages . softer } /> }
277
277
onClick = { props . onSofter }
278
278
/>
279
279
< IconButton
280
- className = { styles . effectButton }
280
+ className = { classNames ( styles . effectButton , styles . flipInRtl ) }
281
281
img = { muteIcon }
282
282
title = { < FormattedMessage { ...messages . mute } /> }
283
283
onClick = { props . onMute }
You can’t perform that action at this time.
0 commit comments