Skip to content

Commit 828d1f3

Browse files
authored
Merge pull request #18 from remohammadi/main
2 parents bfdf6db + 6359082 commit 828d1f3

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

scss/components/_accordion.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,17 @@
110110

111111
&::after {
112112
float: left;
113+
transform: rotate(90deg);
113114
background-position: left center;
114115
}
115116
}
117+
&[open] {
118+
> summary {
119+
&::after {
120+
transform: rotate(0);
121+
}
122+
}
123+
}
116124
}
117125
}
118126
}

scss/components/_group.scss

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,44 @@
129129
}
130130
}
131131
}
132+
133+
[dir="rtl"] {
134+
#{$parent-selector} [role="search"],
135+
#{$parent-selector} [role="group"] {
136+
> *,
137+
input:not([type="checkbox"], [type="radio"]),
138+
select,
139+
label {
140+
&:not(:first-child) {
141+
margin-right: 0;
142+
margin-left: auto;
143+
border-top-right-radius: 0;
144+
border-top-left-radius: var(#{$css-var-prefix}border-radius);
145+
border-bottom-right-radius: 0;
146+
border-bottom-left-radius: var(#{$css-var-prefix}border-radius);
147+
}
148+
149+
&:not(:last-child) {
150+
border-top-right-radius: var(#{$css-var-prefix}border-radius);
151+
border-top-left-radius: 0;
152+
border-bottom-right-radius: var(#{$css-var-prefix}border-radius);
153+
border-bottom-left-radius: 0;
154+
}
155+
}
156+
}
157+
158+
button,
159+
[type="submit"],
160+
[type="reset"],
161+
[type="button"],
162+
[role="button"],
163+
input:not([type="checkbox"], [type="radio"]),
164+
select,
165+
label {
166+
&:not(:first-child) {
167+
margin-right: calc(var(#{$css-var-prefix}border-width) * -1);
168+
margin-left: auto;
169+
}
170+
}
171+
}
132172
}

0 commit comments

Comments
 (0)