Skip to content

Commit

Permalink
Merge pull request #18 from remohammadi/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohn authored Dec 12, 2024
2 parents bfdf6db + 6359082 commit 828d1f3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scss/components/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,17 @@

&::after {
float: left;
transform: rotate(90deg);
background-position: left center;
}
}
&[open] {
> summary {
&::after {
transform: rotate(0);
}
}
}
}
}
}
40 changes: 40 additions & 0 deletions scss/components/_group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,44 @@
}
}
}

[dir="rtl"] {
#{$parent-selector} [role="search"],
#{$parent-selector} [role="group"] {
> *,
input:not([type="checkbox"], [type="radio"]),
select,
label {
&:not(:first-child) {
margin-right: 0;
margin-left: auto;
border-top-right-radius: 0;
border-top-left-radius: var(#{$css-var-prefix}border-radius);
border-bottom-right-radius: 0;
border-bottom-left-radius: var(#{$css-var-prefix}border-radius);
}

&:not(:last-child) {
border-top-right-radius: var(#{$css-var-prefix}border-radius);
border-top-left-radius: 0;
border-bottom-right-radius: var(#{$css-var-prefix}border-radius);
border-bottom-left-radius: 0;
}
}
}

button,
[type="submit"],
[type="reset"],
[type="button"],
[role="button"],
input:not([type="checkbox"], [type="radio"]),
select,
label {
&:not(:first-child) {
margin-right: calc(var(#{$css-var-prefix}border-width) * -1);
margin-left: auto;
}
}
}
}

0 comments on commit 828d1f3

Please sign in to comment.