Skip to content

Commit

Permalink
recommended RTL changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mapmeld committed Sep 3, 2019
1 parent a1b2282 commit 047dbf4
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
}

&__input {
/*rtl:ignore*/
direction: ltr;
border: 1px solid $dusty-gray;
border-radius: 4px;
color: $mid-gray;
Expand All @@ -69,6 +71,7 @@
&__input-arrows {
position: absolute;
top: 7px;
/*rtl:ignore*/
right: 0px;
width: 17px;
height: 24px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@
}

&__input {
/*rtl:ignore*/
direction: ltr;
border: 1px solid $dusty-gray;
border-radius: 4px;
color: $mid-gray;
Expand All @@ -161,6 +163,7 @@
&__input-arrows {
position: absolute;
top: 7px;
/*rtl:ignore*/
right: 0px;
width: 17px;
height: 24px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default class TokenSearch extends Component {
id="search-tokens"
placeholder={this.context.t('searchTokens')}
type="text"
dir="auto"
value={searchQuery}
onChange={e => this.handleSearch(e.target.value)}
error={error}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export default class ImportWithSeedPhrase extends PureComponent {
label={t('newPassword')}
type="password"
className="first-time-flow__input"
dir="auto"
value={this.state.password}
onChange={event => this.handlePasswordChange(event.target.value)}
error={passwordError}
Expand All @@ -252,6 +253,7 @@ export default class ImportWithSeedPhrase extends PureComponent {
label={t('confirmPassword')}
type="password"
className="first-time-flow__input"
dir="auto"
value={this.state.confirmPassword}
onChange={event => this.handleConfirmPasswordChange(event.target.value)}
error={confirmPasswordError}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export default class NewAccount extends PureComponent {
label={t('newPassword')}
type="password"
className="first-time-flow__input"
dir="auto"
value={password}
onChange={event => this.handlePasswordChange(event.target.value)}
error={passwordError}
Expand All @@ -186,6 +187,7 @@ export default class NewAccount extends PureComponent {
label={t('confirmPassword')}
type="password"
className="first-time-flow__input"
dir="auto"
value={confirmPassword}
onChange={event => this.handleConfirmPasswordChange(event.target.value)}
error={confirmPasswordError}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export default class EnsInput extends Component {
<input
className="ens-input__wrapper__input"
type="text"
dir="auto"
placeholder={t('recipientAddressPlaceholder')}
onChange={this.onChange}
onPaste={this.onPaste}
Expand Down
4 changes: 4 additions & 0 deletions ui/app/pages/send/send.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
width: 18px;
height: 18px;
margin-right: .5rem;

[dir='rtl'] & {
transform: rotate(180deg);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default class ConnectionsTab extends PureComponent {
<div className="settings-page__content-item-col">
<TextField
type="text"
dir="auto"
value={this.state.input}
onChange={e => this.setState({ input: e.target.value })}
fullWidth
Expand Down
4 changes: 4 additions & 0 deletions ui/app/pages/settings/contact-list-tab/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@
width: 30px;
opacity: .5;
background-repeat: no-repeat;

[dir='rtl'] & {
transform: rotate(180deg);
}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions ui/app/pages/settings/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,9 @@
}
}
}

.toggle-button {
/*rtl:ignore*/
direction: ltr;
}
}
13 changes: 13 additions & 0 deletions ui/app/pages/settings/networks-tab/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
@media screen and (max-width: 575px) {
padding: 0;
}

input {
/*rtl:ignore*/
direction: ltr;
}
}

&__back-button {
Expand All @@ -38,6 +43,10 @@
cursor: pointer;
position: absolute;
margin-left: 10px;

[dir='rtl'] & {
transform: rotate(180deg);
}
}
}

Expand Down Expand Up @@ -190,6 +199,10 @@
position: absolute;
width: 24px;
height: 24px;

[dir='rtl'] & {
transform: rotate(180deg);
}
}
}

Expand Down

0 comments on commit 047dbf4

Please sign in to comment.