Skip to content

Fixed all issues related to RTL direction of Spectre#505

Open
majiix wants to merge 2 commits into
picturepan2:masterfrom
majiix:master
Open

Fixed all issues related to RTL direction of Spectre#505
majiix wants to merge 2 commits into
picturepan2:masterfrom
majiix:master

Conversation

@majiix

@majiix majiix commented Sep 18, 2018

Copy link
Copy Markdown

Since the language i design my websites with is Persian and it's an RTL language, i checked all the components, layout, elements, utilities and even experimentals in RTL mode and fixed all issues i found based on examples in documents.

Comment thread src/_forms.scss
background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%204%205'%3E%3Cpath%20fill='%23667189'%20d='M2%200L0%202h4zm0%205L0%203h4z'/%3E%3C/svg%3E") no-repeat left .35rem center/.4rem .5rem;
padding-left: $control-icon-size + $control-padding-x;
} @else {
background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%204%205'%3E%3Cpath%20fill='%23667189'%20d='M2%200L0%202h4zm0%205L0%203h4z'/%3E%3C/svg%3E") no-repeat right .35rem center/.4rem .5rem;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Color literals like #fff should only be used in variable declarations; they should be referred to via variable everywhere else.
center/.4rem should be written with a single space on each side of the operator: center / .4rem

Comment thread src/_forms.scss
padding-right: $control-icon-size + $control-padding-x;

@if $rtl == true {
background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%204%205'%3E%3Cpath%20fill='%23667189'%20d='M2%200L0%202h4zm0%205L0%203h4z'/%3E%3C/svg%3E") no-repeat left .35rem center/.4rem .5rem;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Color literals like #fff should only be used in variable declarations; they should be referred to via variable everywhere else.
center/.4rem should be written with a single space on each side of the operator: center / .4rem

Comment thread src/_chips.scss
margin-left: -$unit-2;
margin-right: $unit-1;
@if $rtl == true {
margin-right: -$unit-2;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Properties should be ordered margin-left, margin-right

Comment thread src/_calendars.scss
&.range-end {
&::before {
right: 19px;
&::before {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains trailing whitespace
Nesting should be no greater than 4, but was 5

Comment thread src/_calendars.scss
&.range-start {
&::before {
left: auto;
&::before {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains trailing whitespace
Nesting should be no greater than 4, but was 5

Comment thread src/_buttons.scss
width: $unit-4;

@if $rtl == true {
margin-right: $unit-1;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Properties should be ordered margin-left, margin-right

Comment thread src/_bars.scss
border-bottom-left-radius: $border-radius;
border-top-left-radius: $border-radius;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains trailing whitespace

Comment thread src/_bars.scss
&:first-child {
border-bottom-left-radius: $border-radius;
border-top-left-radius: $border-radius;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains trailing whitespace

Comment thread src/_badges.scss
top: 0;
right: 0;
transform: translate(50%, -50%);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains trailing whitespace

Comment thread src/_accordions.scss
& .accordion-header {
.icon {
transform: rotate(90deg);
.icon {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Selector should have depth of applicability no greater than 2, but was 3
Line contains trailing whitespace

@davestewart davestewart mentioned this pull request Sep 20, 2023
29 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants