Skip to content

Commit 0f15f2d

Browse files
committed
feat: make Rule support RTL
1 parent 77e59e8 commit 0f15f2d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

components/rule/index.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ governing permissions and limitations under the License.
2020
}
2121

2222
.spectrum-Rule {
23-
width: 100%;
23+
inline-size: 100%;
2424

2525
/* Show the overflow for hr in Edge and IE. */
2626
overflow: visible;
@@ -31,35 +31,35 @@ governing permissions and limitations under the License.
3131
}
3232

3333
.spectrum-Rule--large {
34-
height: var(--spectrum-divider-large-height);
34+
block-size: var(--spectrum-divider-large-height);
3535

3636
border-radius: var(--spectrum-divider-large-border-radius);
3737
}
3838

3939
.spectrum-Rule--medium {
40-
height: var(--spectrum-divider-medium-height);
40+
block-size: var(--spectrum-divider-medium-height);
4141

4242
border-radius: var(--spectrum-divider-medium-border-radius);
4343
}
4444

4545
.spectrum-Rule--small {
46-
height: var(--spectrum-divider-small-height);
46+
block-size: var(--spectrum-divider-small-height);
4747

4848
border-radius: var(--spectrum-divider-small-border-radius);
4949
}
5050

5151
.spectrum-Rule--vertical {
52-
height: var(--spectrum-divider-vertical-height);
52+
block-size: var(--spectrum-divider-vertical-height);
5353

5454
&.spectrum-Rule--large {
55-
width: var(--spectrum-divider-large-vertical-width);
55+
inline-size: var(--spectrum-divider-large-vertical-width);
5656
}
5757

5858
&.spectrum-Rule--medium {
59-
width: var(--spectrum-divider-medium-vertical-width);
59+
inline-size: var(--spectrum-divider-medium-vertical-width);
6060
}
6161

6262
&.spectrum-Rule--small {
63-
width: var(--spectrum-divider-small-vertical-width);
63+
inline-size: var(--spectrum-divider-small-vertical-width);
6464
}
6565
}

0 commit comments

Comments
 (0)