Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Fix RTL alignments
Browse files Browse the repository at this point in the history
This fixes #325.

It should be paired with WordPress/gutenberg#11293.

This PR adds RTL ignore comments to the block alignment classes so the values are not overridden.
  • Loading branch information
Joen Asmussen committed Oct 31, 2018
1 parent 3409471 commit c459c17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sass/modules/_alignments.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.alignleft {
/*rtl:ignore*/
float: left;
margin-right: $size__spacing-unit;
}

.alignright {
/*rtl:ignore*/
float: right;
margin-left: $size__spacing-unit;
}
Expand Down
4 changes: 2 additions & 2 deletions style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1478,12 +1478,12 @@ body.page .main-navigation {

/* Alignments */
.alignleft {
float: right;
float: left;
margin-left: 1rem;
}

.alignright {
float: left;
float: right;
margin-right: 1rem;
}

Expand Down
2 changes: 2 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1478,11 +1478,13 @@ body.page .main-navigation {

/* Alignments */
.alignleft {
/*rtl:ignore*/
float: left;
margin-right: 1rem;
}

.alignright {
/*rtl:ignore*/
float: right;
margin-left: 1rem;
}
Expand Down

0 comments on commit c459c17

Please sign in to comment.